fix(project): 适配 lld 链接器(clang 22 环境)
- 移除 -Wl,--unresolved-symbols=ignore-in-object-files(GNU ld 专用,lld 报 unknown argument) - 移除 -latomic(clang64 无 libatomic;x86_64 原子均 lock-free) - 保留 -Wl,--allow-multiple-definition(lld 支持) - 47 个 Test project.json 统一更新
This commit is contained in:
1 parent
0e93f40289
commit
4c39db17c6
47 files changed
+1091
-589
No files matched your search
@@ -6,11 +6,22 @@
|
||||
"build_dir": "./.tpv_build",
|
||||
"compiler": {
|
||||
"cmd": "llc",
|
||||
"flags": ["-filetype=obj", "-relocation-model=pic"]
|
||||
"flags": [
|
||||
"-filetype=obj",
|
||||
"-relocation-model=pic"
|
||||
]
|
||||
},
|
||||
"linker": {
|
||||
"cmd": "clang++",
|
||||
"flags": ["-Wl,--allow-multiple-definition", "-Wl,--unresolved-symbols=ignore-in-object-files", "-lmsvcrt", "-lucrt", "-lpthread", "-lmingwex", "-lkernel32", "-luser32", "-latomic"],
|
||||
"flags": [
|
||||
"-Wl,--allow-multiple-definition",
|
||||
"-lmsvcrt",
|
||||
"-lucrt",
|
||||
"-lpthread",
|
||||
"-lmingwex",
|
||||
"-lkernel32",
|
||||
"-luser32"
|
||||
],
|
||||
"output": "StructTest.exe"
|
||||
},
|
||||
"includes": [
|
||||
@@ -21,9 +32,9 @@
|
||||
"datalayout": "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
||||
},
|
||||
"options": {
|
||||
"slice_level": 3,
|
||||
"slice_level": 3,
|
||||
"sha1_slice_level": 1,
|
||||
"target": "llvm",
|
||||
"strict_mode": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user