From eb0e6fe79d8e49d82bb600529028fcf28767a2d8 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 12 Jun 2015 14:39:38 +0800 Subject: modify arch name --- xmake/scripts/platform/linux/linux.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmake/scripts/platform/linux/linux.lua') 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 -- cgit v1.3.1