diff options
| author | ruki <[email protected]> | 2024-02-07 20:55:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-07 20:55:25 +0800 |
| commit | cde78b29f0f7e0f45d237bb19d99b764133e2bac (patch) | |
| tree | 8fce328f6854193afa47b00afc72bcd7d0822aaa | |
| parent | bd3e33545598f5c8647668f48d7e35c7cf9a3ec0 (diff) | |
| parent | ade940b6569094837226e118cf050c690635b3f9 (diff) | |
Merge pull request #4720 from xq114/dev
force to apply -arch arm64 for autoconf
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index 02bcec28c..79974822e 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -324,6 +324,9 @@ function buildenvs(package, opt) envs.CPP = _translate_windows_bin_path(envs.CPP) envs.RANLIB = _translate_windows_bin_path(envs.RANLIB) end + elseif package:is_plat("macosx") then + -- force to apply shflags on macosx https://gmplib.org/manual/Known-Build-Problems + envs.CC = envs.CC .. " -arch " .. package:arch() elseif package:is_plat("cross") or package:has_tool("ar", "ar", "emar") then -- only for cross-toolchain envs.CXX = package:build_getenv("cxx") |
