From fb3d3787e6d833683e9f1babce1fed52db6c8bd3 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Wed, 7 Oct 2026 11:25:38 +0800 Subject: [PATCH] =?UTF-8?q?refactor(build):=20linker.cmd=20=E7=94=B1?= =?UTF-8?q?=E7=BB=9D=E5=AF=B9=E8=B7=AF=E5=BE=84=E6=94=B9=E4=B8=BA=E8=A3=B8?= =?UTF-8?q?=E5=90=8D=EF=BC=8C--asan=20=E6=8F=90=E7=A4=BA=E6=96=87=E6=A1=88?= =?UTF-8?q?=E5=8E=BB=E7=A1=AC=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - project.vpj / repl.vpj 的 linker.cmd 改为 clang++.exe,交由 PATH 解析 - main.vp 的 --asan 运行库提示改用占位符路径,并说明 clang64 根目录由 PATH 自动探测 --- App/main.vp | 6 +++--- project.vpj | 2 +- repl.vpj | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/App/main.vp b/App/main.vp index 013a5bb..1244a46 100644 --- a/App/main.vp +++ b/App/main.vp @@ -389,9 +389,9 @@ Target: %s # --asan requires the project to declare the ASan runtime in project.vpj linker.static_libs (no hardcoded paths); missing fails fast if BuildPipeline._asan_mode != 0 and Config.asan_runtime_declared() == 0: log.error("Enabling --asan requires declaring the ASan runtime in project.vpj's linker.static_libs:", "asan") - log.error(" D:/msys64/clang64/lib/clang/22/lib/windows/libclang_rt.asan_dynamic-x86_64.dll.a", "asan") - log.error(" D:/msys64/clang64/lib/clang/22/lib/windows/libclang_rt.asan_dynamic_runtime_thunk-x86_64.a", "asan") - log.error("At runtime D:/msys64/clang64/bin (libclang_rt.asan_dynamic-x86_64.dll) must also be on PATH", "asan") + log.error(" /clang64/lib/clang//lib/windows/libclang_rt.asan_dynamic-x86_64.dll.a", "asan") + log.error(" /clang64/lib/clang//lib/windows/libclang_rt.asan_dynamic_runtime_thunk-x86_64.a", "asan") + log.error("The clang64 root is auto-detected from PATH (see README section 8.1)", "asan") return 1 # === --clean: remove temp, output and includes.binary directories === diff --git a/project.vpj b/project.vpj index 9a959c4..860cba6 100644 --- a/project.vpj +++ b/project.vpj @@ -13,7 +13,7 @@ ] }, "linker": { - "cmd": "D:/msys64/mingw64/bin/clang++.exe", + "cmd": "clang++.exe", "flags": [ "-fuse-ld=lld", "-lmsvcrt", diff --git a/repl.vpj b/repl.vpj index 4a0a787..73eb2dc 100644 --- a/repl.vpj +++ b/repl.vpj @@ -12,7 +12,7 @@ ] }, "linker": { - "cmd": "D:/msys64/mingw64/bin/clang++.exe", + "cmd": "clang++.exe", "flags": [ "-fuse-ld=lld", "-lmsvcrt",