summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/windows
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/windows
parent3c4c1616be193d5146e2ddd9f8dcc706baf1f8f5 (diff)
modify arch name
Diffstat (limited to 'xmake/scripts/platform/windows')
-rw-r--r--xmake/scripts/platform/windows/tools/link.lua4
-rw-r--r--xmake/scripts/platform/windows/windows.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/scripts/platform/windows/tools/link.lua b/xmake/scripts/platform/windows/tools/link.lua
index 4c8d59aaa..4a77c9908 100644
--- a/xmake/scripts/platform/windows/tools/link.lua
+++ b/xmake/scripts/platform/windows/tools/link.lua
@@ -41,8 +41,8 @@ function link.init(self, name)
-- init flags for architecture
local flags_arch = ""
- if arch == "x86" then flags_arch = "-machine:x86"
- elseif arch == "x64" then flags_arch = "-machine:x86_64"
+ if arch == "i386" then flags_arch = "-machine:x86"
+ elseif arch == "x86_64" then flags_arch = "-machine:x86_64"
end
-- init ldflags
diff --git a/xmake/scripts/platform/windows/windows.lua b/xmake/scripts/platform/windows/windows.lua
index 573699d9a..4c9d11e8f 100644
--- a/xmake/scripts/platform/windows/windows.lua
+++ b/xmake/scripts/platform/windows/windows.lua
@@ -31,7 +31,7 @@ local config = require("base/config")
windows._HOST = "windows"
-- init architectures
-windows._ARCHS = {"x86", "x64"}
+windows._ARCHS = {"i386", "x86_64"}
-- enter the given environment
function windows._enter(name)