mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +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
|
||||
-- TODO: test if we can find the compiler
|
||||
else
|
||||
if ExecuteSilent("cl") == 0 then
|
||||
option.driver = "cl"
|
||||
elseif ExecuteSilent("g++ -v") == 0 then
|
||||
if ExecuteSilent("g++ -v") == 0 then
|
||||
option.driver = "gcc"
|
||||
elseif ExecuteSilent("cl") == 0 then
|
||||
option.driver = "cl"
|
||||
else
|
||||
error("no c/c++ compiler found")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue