summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-05-12 21:58:54 +0800
committerGitHub <[email protected]>2025-05-12 21:58:54 +0800
commit1c38e7509f7c155cdbdd203e277ddfb83d980a04 (patch)
tree8f8163f7dbbdf9baeeb433374f5f5ac3e7605025
parentc215a0e6b620229098ab2fe5ea9169809e2617e5 (diff)
Update xmake.lua
-rw-r--r--xmake/rules/platform/windows/subsystem/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/platform/windows/subsystem/xmake.lua b/xmake/rules/platform/windows/subsystem/xmake.lua
index f1de0b9e9..82b1b45fc 100644
--- a/xmake/rules/platform/windows/subsystem/xmake.lua
+++ b/xmake/rules/platform/windows/subsystem/xmake.lua
@@ -38,7 +38,7 @@ rule("platform.windows.subsystem")
end
assert(valid, "Invalid subsystem " .. subsystem)
- if target:has_tool("ld", "clang", "clangxx", "clang-cl") then
+ if target:has_tool("ld", "clang", "clangxx", "clang_cl") then
target:add("ldflags", "-Wl,-subsystem:" .. subsystem, { force = true })
elseif target:has_tool("ld", "link", "lld-link") then
target:add("ldflags", "/SUBSYSTEM:" .. upper(subsystem), { force = true })