summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-09-16 22:43:38 +0800
committerruki <[email protected]>2025-09-16 10:22:19 +0800
commitf5c16b8fca10d6565993d0e05c89c485880c579e (patch)
tree1e6de590ac080e3f844758ddde2644241f285280
parentd0b58de6f97b93a877365ca19912fbcd94a965b2 (diff)
fix subsystem #6807
-rw-r--r--xmake/rules/platform/windows/subsystem/xmake.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/rules/platform/windows/subsystem/xmake.lua b/xmake/rules/platform/windows/subsystem/xmake.lua
index 2f580e4e1..125eeb966 100644
--- a/xmake/rules/platform/windows/subsystem/xmake.lua
+++ b/xmake/rules/platform/windows/subsystem/xmake.lua
@@ -39,15 +39,15 @@ 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 })
+ target:add("ldflags", "/SUBSYSTEM:" .. subsystem:upper(), {force = true})
elseif target:has_tool("ld", "gcc", "gxx") then
- target:add("ldflags", "-Wl,-m" .. subsystem, { force = true })
+ target:add("ldflags", "-m" .. subsystem, {force = true})
elseif target:has_tool("ld", "lld") then
- target:add("ldflags", "-subsystem:" .. subsystem, { force = true })
+ target:add("ldflags", "-subsystem:" .. subsystem, {force = true})
elseif target:has_tool("ld", "ld") then
- target:add("ldflags", "-m" .. subsystem, { force = true })
+ target:add("ldflags", "-m" .. subsystem, {force = true})
end
end
end)