summaryrefslogtreecommitdiff
path: root/xmake/platforms
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-14 23:02:04 +0800
committerruki <[email protected]>2020-02-14 12:12:28 +0800
commitffb92f48bcfbe4c34d027a7e01ff27b18b97c431 (patch)
treed1878aeac54ac4faf1905a964800ff8956cc78f7 /xmake/platforms
parentb44a566e16e9022428d0f4453c8f1df0af1577d5 (diff)
improve host and arch
Diffstat (limited to 'xmake/platforms')
-rw-r--r--xmake/platforms/cygwin/config.lua10
-rw-r--r--xmake/platforms/msys/config.lua10
2 files changed, 2 insertions, 18 deletions
diff --git a/xmake/platforms/cygwin/config.lua b/xmake/platforms/cygwin/config.lua
index 166d12274..96d9e81c4 100644
--- a/xmake/platforms/cygwin/config.lua
+++ b/xmake/platforms/cygwin/config.lua
@@ -34,15 +34,7 @@ function _check_arch()
if not arch then
-- init the default architecture
- local arch = config.get("cross") and "none" or os.arch()
- if is_host("windows") then
- if arch == "x64" then
- arch = "x86_64"
- elseif arch == "x86" then
- arch = "i386"
- end
- end
- config.set("arch", arch)
+ config.set("arch", config.get("cross") and "none" or os.arch())
-- trace
print("checking for the architecture ... %s", config.get("arch"))
diff --git a/xmake/platforms/msys/config.lua b/xmake/platforms/msys/config.lua
index b33fb885f..15abb0e5c 100644
--- a/xmake/platforms/msys/config.lua
+++ b/xmake/platforms/msys/config.lua
@@ -34,15 +34,7 @@ function _check_arch()
if not arch then
-- init the default architecture
- local arch = config.get("cross") and "none" or os.arch()
- if is_host("windows") then
- if arch == "x64" then
- arch = "x86_64"
- elseif arch == "x86" then
- arch = "i386"
- end
- end
- config.set("arch", arch)
+ config.set("arch", config.get("cross") and "none" or os.arch())
-- trace
print("checking for the architecture ... %s", config.get("arch"))