mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
switched gcc and cl compiler detection. (#1503)
This commit is contained in:
parent
4b164b6dfe
commit
16965e4bd6
|
@ -359,10 +359,10 @@ function OptCCompiler(name, default_driver, default_c, default_cxx, desc)
|
||||||
-- no need todo anything if we have a driver
|
-- no need todo anything if we have a driver
|
||||||
-- TODO: test if we can find the compiler
|
-- TODO: test if we can find the compiler
|
||||||
else
|
else
|
||||||
if ExecuteSilent("cl") == 0 then
|
if ExecuteSilent("g++ -v") == 0 then
|
||||||
option.driver = "cl"
|
|
||||||
elseif ExecuteSilent("g++ -v") == 0 then
|
|
||||||
option.driver = "gcc"
|
option.driver = "gcc"
|
||||||
|
elseif ExecuteSilent("cl") == 0 then
|
||||||
|
option.driver = "cl"
|
||||||
else
|
else
|
||||||
error("no c/c++ compiler found")
|
error("no c/c++ compiler found")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue