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:
TermiNexus committed 2026-08-12 21:45:41 +08:00
1 parent 0e93f40289
commit 4c39db17c6
47 files changed
+1091 -589

No files matched your search

+14 -3
View File
@@ -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": "ExpandKeywordsTest.exe"
},
"includes": [
@@ -26,4 +37,4 @@
"target": "llvm",
"strict_mode": true
}
}
}