summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/macosx/install.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/platform/macosx/install.lua')
-rw-r--r--xmake/scripts/platform/macosx/install.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/platform/macosx/install.lua b/xmake/scripts/platform/macosx/install.lua
index df254cebc..f5aee6ffe 100644
--- a/xmake/scripts/platform/macosx/install.lua
+++ b/xmake/scripts/platform/macosx/install.lua
@@ -42,7 +42,7 @@ function install._done_library(target)
assert(outputdir)
-- get target info
- local info = target.archs["x86_64"] or target.archs["i386"]
+ local info = target.archs[xmake._ARCH] or target.archs["x86_64"] or target.archs["i386"]
if not info then return -1 end
-- check
@@ -125,7 +125,7 @@ function install._done_binary(target)
end
-- get target info
- local info = target.archs["x86_64"] or target.archs["i386"]
+ local info = target.archs[xmake._ARCH] or target.archs["x86_64"] or target.archs["i386"]
if not info then return -1 end
-- check