pull/287/head
ruki 4 years ago
parent a8bcd72dcb
commit 817b94760e
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 10
      packages/m/muslcc/xmake.lua

@ -51,6 +51,12 @@ package("muslcc")
on_install("@windows", "@linux", "@macosx", function (package)
os.tryrm("usr") -- remove soft link
os.vcp("*", package:installdir())
if package:is_plat("macosx") then
-- fix missing libisl.22.dylib
if not os.isfile("/usr/local/opt/isl/lib/libisl.22.dylib") then
os.vcp("/usr/local/opt/isl/lib/libisl.21.dylib", path.join(package:installdir("lib"), "libisl.22.dylib"))
end
end
end)
on_test(function (package)
@ -67,5 +73,7 @@ package("muslcc")
if gcc and is_host("windows") then
gcc = gcc .. ".exe"
end
os.vrunv(gcc, {"--version"})
local file = os.tmpfile() .. ".c"
io.writefile(file, "int main(int argc, char** argv) {return 0;}")
os.vrunv(gcc, {"-c", file})
end)

Loading…
Cancel
Save