diff options
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 } |
