Skip to content

Commit f5c16b8

Browse files
committed
fix subsystem #6807
1 parent d0b58de commit f5c16b8

File tree

1 file changed

+5
-5
lines changed
  • xmake/rules/platform/windows/subsystem

1 file changed

+5
-5
lines changed

xmake/rules/platform/windows/subsystem/xmake.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ rule("platform.windows.subsystem")
3939
assert(valid, "Invalid subsystem " .. subsystem)
4040

4141
if target:has_tool("ld", "clang", "clangxx", "clang_cl") then
42-
target:add("ldflags", "-Xlinker", "-subsystem:" .. subsystem, { force = true })
42+
target:add("ldflags", "-Xlinker", "-subsystem:" .. subsystem, {force = true})
4343
elseif target:has_tool("ld", "link", "lld-link") then
44-
target:add("ldflags", "/SUBSYSTEM:" .. subsystem:upper(), { force = true })
44+
target:add("ldflags", "/SUBSYSTEM:" .. subsystem:upper(), {force = true})
4545
elseif target:has_tool("ld", "gcc", "gxx") then
46-
target:add("ldflags", "-Wl,-m" .. subsystem, { force = true })
46+
target:add("ldflags", "-m" .. subsystem, {force = true})
4747
elseif target:has_tool("ld", "lld") then
48-
target:add("ldflags", "-subsystem:" .. subsystem, { force = true })
48+
target:add("ldflags", "-subsystem:" .. subsystem, {force = true})
4949
elseif target:has_tool("ld", "ld") then
50-
target:add("ldflags", "-m" .. subsystem, { force = true })
50+
target:add("ldflags", "-m" .. subsystem, {force = true})
5151
end
5252
end
5353
end)

0 commit comments

Comments
 (0)