summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-13 11:31:55 +0800
committerGitHub <[email protected]>2025-10-13 11:31:55 +0800
commit4c4a4df3d5ece5d01b76b0e0a814e561500c521f (patch)
treecc64120ac285623ba98aad31120e3e91f2db9b28
parentd924be44bcd6d898363e7157e171903173cfd461 (diff)
parenta2302198d31038abf975ded1663da3a0e6b7f39d (diff)
Merge pull request #6920 from Arthapz/fix-window-system-xlinker-flag
fix(rules) fix platform.windows.subsystem rule for clang
-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 125eeb966..87204e64f 100644
--- a/xmake/rules/platform/windows/subsystem/xmake.lua
+++ b/xmake/rules/platform/windows/subsystem/xmake.lua
@@ -39,7 +39,7 @@ rule("platform.windows.subsystem")
assert(valid, "Invalid subsystem " .. subsystem)
if target:has_tool("ld", "clang", "clangxx", "clang_cl") then
- target:add("ldflags", "-Xlinker", "-subsystem:" .. subsystem, {force = true})
+ target:add("ldflags", {"-Xlinker", "-subsystem:" .. subsystem}, {force = true, expand = false})
elseif target:has_tool("ld", "link", "lld-link") then
target:add("ldflags", "/SUBSYSTEM:" .. subsystem:upper(), {force = true})
elseif target:has_tool("ld", "gcc", "gxx") then