switched gcc and cl compiler detection. (#1503)

This commit is contained in:
oy 2017-10-03 19:04:22 +02:00
parent 4b164b6dfe
commit 16965e4bd6

View file

@ -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