summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/linux/linux.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-12 14:39:38 +0800
committerruki <[email protected]>2015-06-12 14:39:38 +0800
commiteb0e6fe79d8e49d82bb600529028fcf28767a2d8 (patch)
tree47d565fb521efebf5919ddaef495e026517a1179 /xmake/scripts/platform/linux/linux.lua
parent3c4c1616be193d5146e2ddd9f8dcc706baf1f8f5 (diff)
modify arch name
Diffstat (limited to 'xmake/scripts/platform/linux/linux.lua')
-rw-r--r--xmake/scripts/platform/linux/linux.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/scripts/platform/linux/linux.lua b/xmake/scripts/platform/linux/linux.lua
index 40f9b5999..9ce5f447e 100644
--- a/xmake/scripts/platform/linux/linux.lua
+++ b/xmake/scripts/platform/linux/linux.lua
@@ -30,7 +30,7 @@ local config = require("base/config")
linux._HOST = "linux"
-- init architectures
-linux._ARCHS = {"x86", "x64"}
+linux._ARCHS = {"i386", "x86_64"}
-- make configure
function linux.make(configs)
@@ -57,8 +57,8 @@ function linux.make(configs)
local archflags = nil
local arch = config.get("arch")
if arch then
- if arch == "x64" then archflags = "-m64"
- elseif arch == "x86" then archflags = "-m32"
+ if arch == "x86_64" then archflags = "-m64"
+ elseif arch == "i386" then archflags = "-m32"
else archflags = "-arch " .. arch
end
end