Skip to content

Commit

Permalink
revise
Browse files Browse the repository at this point in the history
  • Loading branch information
luadebug committed Dec 28, 2024
1 parent e8d086a commit 58a518c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/l/libmysofa/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ package("libmysofa")

add_deps("cmake", "zlib")

on_install("!wasm", function (package)
if package:is_plat("cross", "bsd") then
if is_plat("linux", "bsd") then
add_syslinks("m", "pthread")
end

on_install(function (package)
if package:is_plat("wasm", "cross") then
io.replace("src/CMakeLists.txt", [[find_library(MATH m)]], [[set(MATH "")]], {plain = true})
end
os.rm("windows/third-party/zlib-1.2.11")
Expand Down

0 comments on commit 58a518c

Please sign in to comment.