Skip to content

Commit 517632f

Browse files
authored
Update xmake.lua
1 parent bbd21f2 commit 517632f

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ rule("platform.windows.subsystem")
4141
if target:has_tool("ld", "clang", "clangxx", "clang_cl") then
4242
target:add("ldflags", "-Wl,-subsystem:" .. subsystem, { force = true })
4343
elseif target:has_tool("ld", "link", "lld-link") then
44-
target:add("ldflags", "/SUBSYSTEM:" .. string.upper(subsystem), { force = true })
44+
target:add("ldflags", "/SUBSYSTEM:" .. subsystem:upper(), { force = true })
4545
elseif target:has_tool("ld", "gcc", "gxx") then
4646
target:add("ldflags", "-Wl,-m" .. subsystem, { force = true })
4747
elseif target:has_tool("ld", "lld") then

0 commit comments

Comments
 (0)