diff options
| author | ruki <[email protected]> | 2015-06-12 14:39:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-12 14:39:38 +0800 |
| commit | eb0e6fe79d8e49d82bb600529028fcf28767a2d8 (patch) | |
| tree | 47d565fb521efebf5919ddaef495e026517a1179 /xmake/scripts/platform/linux/linux.lua | |
| parent | 3c4c1616be193d5146e2ddd9f8dcc706baf1f8f5 (diff) | |
modify arch name
Diffstat (limited to 'xmake/scripts/platform/linux/linux.lua')
| -rw-r--r-- | xmake/scripts/platform/linux/linux.lua | 6 |
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 |
