enable mingw for libffi (#1488)

pull/1491/head
ruki 2 years ago committed by GitHub
parent b74d051592
commit 75f4ff4b66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/l/libffi/xmake.lua

@ -15,7 +15,7 @@ package("libffi")
add_extsources("brew::libffi")
end
on_load("macosx", "linux", "bsd", function (package)
on_load("macosx", "linux", "bsd", "mingw", function (package)
if package:gitref() then
package:add("deps", "autoconf", "automake", "libtool")
elseif package:version():le("3.2.1") then
@ -31,7 +31,7 @@ package("libffi")
})
end)
on_install("macosx", "linux", "bsd", function (package)
on_install("macosx", "linux", "bsd", "mingw", function (package)
local configs = {"--disable-silent-rules", "--disable-dependency-tracking"}
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))

Loading…
Cancel
Save