Explorar el Código

Add Windows Clang linker flags for Catch2 (#3236)

Aidan Sun hace 1 año
padre
commit
1280a656f8
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      packages/c/catch2/xmake.lua

+ 5 - 1
packages/c/catch2/xmake.lua

@@ -53,7 +53,11 @@ package("catch2")
         end
         end
         component:add("links", link)
         component:add("links", link)
         if package:is_plat("windows") then
         if package:is_plat("windows") then
-            component:add("ldflags", "-subsystem:console")
+            if package:has_tool("cxx", "cl") then
+                component:add("ldflags", "-subsystem:console")
+            elseif package:has_tool("cxx", "clang", "clangxx") then
+                component:add("ldflags", "-Wl,/subsystem:console")
+            end
         end
         end
     end)
     end)