|
|
|
@ -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) |
|
|
|
|