summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-05-13 23:24:42 +0800
committerGitHub <[email protected]>2025-05-13 23:24:42 +0800
commit517632fbff47dc25575d3168255d754fe62505df (patch)
tree8294d5fbc127df5db71891c757b31084dc647ff3
parentbbd21f24a06d3e02396363fa8cf729310b0791b7 (diff)
Update xmake.lua
-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 9c64ec808..eb037ac99 100644
--- a/xmake/rules/platform/windows/subsystem/xmake.lua
+++ b/xmake/rules/platform/windows/subsystem/xmake.lua
@@ -41,7 +41,7 @@ rule("platform.windows.subsystem")
if target:has_tool("ld", "clang", "clangxx", "clang_cl") then
target:add("ldflags", "-Wl,-subsystem:" .. subsystem, { force = true })
elseif target:has_tool("ld", "link", "lld-link") then
- target:add("ldflags", "/SUBSYSTEM:" .. string.upper(subsystem), { 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 })
elseif target:has_tool("ld", "lld") then