From 16965e4bd6e85488fffa1d8c91530b037b60fed1 Mon Sep 17 00:00:00 2001 From: oy Date: Tue, 3 Oct 2017 19:04:22 +0200 Subject: [PATCH] switched gcc and cl compiler detection. (#1503) --- configure.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.lua b/configure.lua index aa6da6af7..8060bbe77 100644 --- a/configure.lua +++ b/configure.lua @@ -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