summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-10-12 19:38:23 +0200
committerArthur LAURENT <[email protected]>2025-10-12 19:38:23 +0200
commit59f83768cab613faa070c8b969ac4654dec9cd3d (patch)
tree84bfc782fe29917a7e9e093d544ab395eb72cf83
parentbd98673ac1c0058658a5a309a886509e1cc39525 (diff)
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..9d90f72f0 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})
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