mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
added fix for compiling problems if cl and gcc are installed by Sworddragon. Closes #114
This commit is contained in:
parent
08f6e7dd07
commit
fc486cb0ab
|
@ -360,10 +360,10 @@ function OptCCompiler(name, default_driver, default_c, default_cxx, desc)
|
|||
-- no need todo anything if we have a driver
|
||||
-- TODO: test if we can find the compiler
|
||||
else
|
||||
if ExecuteSilent("g++ -v") == 0 then
|
||||
option.driver = "gcc"
|
||||
elseif ExecuteSilent("cl") == 0 then
|
||||
if ExecuteSilent("cl") == 0 then
|
||||
option.driver = "cl"
|
||||
elseif ExecuteSilent("g++ -v") == 0 then
|
||||
option.driver = "gcc"
|
||||
else
|
||||
error("no c/c++ compiler found")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue