From 3ffafa2225cbfe7a745a26975f706c473900fd2d Mon Sep 17 00:00:00 2001 From: Brad Hughes Date: Wed, 29 Jun 2016 22:40:17 -0400 Subject: Fix compile bug on Bash for Windows (nw) --- scripts/toolchain.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/toolchain.lua') 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" -- cgit v1.2.3-70-g09d2