diff options
| author | iFarbod <[email protected]> | 2024-11-30 23:38:28 +0330 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-11-30 23:38:28 +0330 |
| commit | ccc328a3538c9b6ca8537c1190de890e52b02b01 (patch) | |
| tree | a3ec2ab1401cd4244d73b3ea01d4eeae9c4a9d57 | |
| parent | ce6f7dbd1350ba83c88c55b7ca170ae97bc54764 (diff) | |
Limit adding /subsystem:windows to link.exe
For example, if you use Clang compiler AND Clang linker, this will give you an error, saying -subsystem:windows is not valid.
| -rw-r--r-- | xmake/rules/winsdk/xmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/winsdk/xmake.lua b/xmake/rules/winsdk/xmake.lua index b782c4f1f..3c7e6fa0f 100644 --- a/xmake/rules/winsdk/xmake.lua +++ b/xmake/rules/winsdk/xmake.lua @@ -49,7 +49,7 @@ rule("win.sdk.application") end end if not subsystem then - target:add("ldflags", "-subsystem:windows", {force = true}) + target:add("ldflags", "-subsystem:windows", {force = true, tools = "link"}) end end |
