mirror of
https://github.com/holub/mame
synced 2025-07-03 09:06:08 +03:00
Fix compile bug on Bash for Windows (nw)
This commit is contained in:
parent
6f29697a38
commit
3ffafa2225
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user