summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author Brad Hughes <bradhugh@outlook.com>2016-06-29 22:40:17 -0400
committer Brad Hughes <bradhugh@outlook.com>2016-06-29 22:40:17 -0400
commit3ffafa2225cbfe7a745a26975f706c473900fd2d (patch)
treefd68bebd47d435832049e2366feb341d8cdfa247 /scripts
parent6f29697a3861e96659265f2c66c77989dee9a666 (diff)
Fix compile bug on Bash for Windows (nw)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/toolchain.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua
index 6046b4d97d8..b48c367f1ad 100644
--- a/scripts/toolchain.lua
+++ b/scripts/toolchain.lua
@@ -246,7 +246,7 @@ function toolchain(_buildDir, _subDir)
if not os.getenv("MINGW32") then
print("Set MINGW32 envrionment variable.")
end
- if not toolchainPrefix then
+ if toolchainPrefix == nil or toolchainPrefix == "" then
toolchainPrefix = "$(MINGW32)/bin/i686-w64-mingw32-"
end
premake.gcc.cc = toolchainPrefix .. "gcc"
@@ -266,7 +266,7 @@ function toolchain(_buildDir, _subDir)
if not os.getenv("MINGW64") then
print("Set MINGW64 envrionment variable.")
end
- if not toolchainPrefix then
+ if toolchainPrefix == nil or toolchainPrefix == "" then
toolchainPrefix = "$(MINGW64)/bin/x86_64-w64-mingw32-"
end
premake.gcc.cc = toolchainPrefix .. "gcc"