Skip to content
This repository has been archived by the owner on Jun 26, 2019. It is now read-only.

Commit

Permalink
switched gcc and cl compiler detection. (#1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
oy committed Oct 3, 2017
1 parent 4b164b6 commit 16965e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16965e4

Please sign in to comment.