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/mingw/mingw.lua | |
| parent | 3c4c1616be193d5146e2ddd9f8dcc706baf1f8f5 (diff) | |
modify arch name
Diffstat (limited to 'xmake/scripts/platform/mingw/mingw.lua')
| -rw-r--r-- | xmake/scripts/platform/mingw/mingw.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/scripts/platform/mingw/mingw.lua b/xmake/scripts/platform/mingw/mingw.lua index d4ae010bb..466305753 100644 --- a/xmake/scripts/platform/mingw/mingw.lua +++ b/xmake/scripts/platform/mingw/mingw.lua @@ -30,7 +30,7 @@ local config = require("base/config") mingw._HOST = xmake._HOST -- init architectures -mingw._ARCHS = {"x86", "x64"} +mingw._ARCHS = {"i386", "x86_64"} -- make configure function mingw.make(configs) @@ -55,8 +55,9 @@ function mingw.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 configs.cxflags = { archflags } |
