ruki 1 anno fa
parent
commit
330616d122
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      packages/j/joltphysics/xmake.lua

+ 2 - 2
packages/j/joltphysics/xmake.lua

@@ -60,7 +60,7 @@ package("joltphysics")
             package:add("defines", "JPH_OBJECT_LAYER_BITS=" .. package:config("object_layer_bits"))
             package:add("defines", "JPH_OBJECT_LAYER_BITS=" .. package:config("object_layer_bits"))
         end
         end
         if package:is_plat("windows") and not package:config("shared") then
         if package:is_plat("windows") and not package:config("shared") then
-            package:add("syslinks", "Advapi32")
+            package:add("syslinks", "advapi32")
         end
         end
         package:add("defines", "JPH_PROFILE_ENABLED")
         package:add("defines", "JPH_PROFILE_ENABLED")
         if package:is_plat("windows") then
         if package:is_plat("windows") then
@@ -86,7 +86,7 @@ package("joltphysics")
         end
         end
         if package:is_arch("i386", "x86", "x64", "x86_64") then
         if package:is_arch("i386", "x86", "x64", "x86_64") then
             -- add instruction sets (from https://github.com/jrouwe/JoltPhysics/blob/4cd52055e09160affcafa557b39520331bf0d034/Jolt/Jolt.cmake#L602)
             -- add instruction sets (from https://github.com/jrouwe/JoltPhysics/blob/4cd52055e09160affcafa557b39520331bf0d034/Jolt/Jolt.cmake#L602)
-            if package:has_tool("cxx", "cl") then
+            if package:is_plat("windows") then
                 if package:config("inst_avx512") then
                 if package:config("inst_avx512") then
                     package:add("cxxflags", "/arch:AVX512")
                     package:add("cxxflags", "/arch:AVX512")
                 elseif package:config("inst_avx2") then
                 elseif package:config("inst_avx2") then