summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/platforms/windows/config.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/platforms/windows/config.lua b/xmake/platforms/windows/config.lua
index dc647f065..f4c188d94 100644
--- a/xmake/platforms/windows/config.lua
+++ b/xmake/platforms/windows/config.lua
@@ -71,7 +71,8 @@ function _toolchains()
mrc:add("rc.exe")
-- init the assember
- if config.get("arch"):find("64") then
+ local arch = config.get("arch")
+ if arch and arch:find("64") then
as:add("ml64.exe")
else
as:add("ml.exe")