diff options
| -rw-r--r-- | xmake/platforms/windows/environment.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/platforms/windows/environment.lua b/xmake/platforms/windows/environment.lua index 5281880e0..11c9a6534 100644 --- a/xmake/platforms/windows/environment.lua +++ b/xmake/platforms/windows/environment.lua @@ -35,8 +35,11 @@ function _enter(name) return end + -- get arch + local arch = config.get("arch") or global.get("arch") or "" + -- get vs environment for the current arch - local vsenv = vcvarsall[config.get("arch") or ""] or {} + local vsenv = vcvarsall[arch] or {} -- get the pathes for the vs environment local old = nil |
