Skip to content

Commit

Permalink
fix joltphysics (#4943)
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi authored Aug 16, 2024
1 parent 9086e3f commit 330616d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/j/joltphysics/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ package("joltphysics")
package:add("defines", "JPH_OBJECT_LAYER_BITS=" .. package:config("object_layer_bits"))
end
if package:is_plat("windows") and not package:config("shared") then
package:add("syslinks", "Advapi32")
package:add("syslinks", "advapi32")
end
package:add("defines", "JPH_PROFILE_ENABLED")
if package:is_plat("windows") then
Expand All @@ -86,7 +86,7 @@ package("joltphysics")
end
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)
if package:has_tool("cxx", "cl") then
if package:is_plat("windows") then
if package:config("inst_avx512") then
package:add("cxxflags", "/arch:AVX512")
elseif package:config("inst_avx2") then
Expand Down

0 comments on commit 330616d

Please sign in to comment.