summaryrefslogtreecommitdiff
path: root/xmake/rules/c++
diff options
context:
space:
mode:
authorstar9029 <[email protected]>2025-12-21 17:01:53 +0800
committerstar9029 <[email protected]>2025-12-21 17:01:53 +0800
commit3c6c162da56f3fe7b9b99dd3f1194e0a545c68f7 (patch)
tree5135a3fdd83e3b925ff6f1ae3cdc509993994e9b /xmake/rules/c++
parentd3a3a4d45e92a4b6af0438e0df81dce9d0bd4dc4 (diff)
fix has_tool lld-link
Diffstat (limited to 'xmake/rules/c++')
-rw-r--r--xmake/rules/c++/config/sanitizer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/config/sanitizer.lua b/xmake/rules/c++/config/sanitizer.lua
index e6606efe9..1862d3e9b 100644
--- a/xmake/rules/c++/config/sanitizer.lua
+++ b/xmake/rules/c++/config/sanitizer.lua
@@ -72,7 +72,7 @@ function _add_build_sanitizer(target, sourcekind, checkmode)
end
local libdir = _get_clang_asan_library_dir(target)
- local driver = target:has_tool("ld", "lld-link", "link") and "" or "-Wl,"
+ local driver = target:has_tool("ld", "lld_link", "link") and "" or "-Wl,"
local thunk = path.join(libdir, string.format("clang_rt.asan_%s_runtime_thunk-x86_64.lib", kind))
table.join2(ldflags, {
path.unix(path.join(libdir, "clang_rt.asan_dynamic-x86_64.lib")),