switch is_targetarch

pull/286/head
ruki 4 years ago
parent 71b1a9d705
commit 3215fa0737
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 6
      packages/l/llvm-mingw/xmake.lua
  2. 6
      packages/m/muslcc/xmake.lua

@ -34,11 +34,11 @@ package("llvm-mingw")
on_test(function (package)
local gcc
if is_arch("i386", "x86", "i686") then
if package:is_targetarch("i386", "x86", "i686") then
gcc = "i686-w64-mingw32-gcc"
elseif is_arch("arm64", "aarch64") then
elseif package:is_targetarch("arm64", "aarch64") then
gcc = "aarch64-w64-mingw32-gcc"
elseif is_arch("armv7", "arm.*") then
elseif package:is_targetarch("armv7", "arm.*") then
gcc = "armv7-w64-mingw32-gcc"
else
gcc = "x86_64-w64-mingw32-gcc"

@ -55,11 +55,11 @@ package("muslcc")
on_test(function (package)
local gcc
if is_arch("arm64") then
if package:is_targetarch("arm64") then
gcc = "aarch64-linux-musl-gcc"
elseif is_arch("arm.*") then
elseif package:is_targetarch("arm.*") then
gcc = "arm-linux-musleabi-gcc"
elseif is_arch("x86", "i386") then
elseif package:is_targetarch("x86", "i386") then
gcc = "i686-linux-musl-gcc"
else
gcc = "x86_64-linux-musl-gcc"

Loading…
Cancel
Save