From fc486cb0ab9b5a2e821236af5da24b59d92af7fa Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 22 Sep 2010 00:28:14 +0200 Subject: added fix for compiling problems if cl and gcc are installed by Sworddragon. Closes #114 --- configure.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.lua b/configure.lua index 3b36d484..b96c629d 100644 --- a/configure.lua +++ b/configure.lua @@ -360,10 +360,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("g++ -v") == 0 then - option.driver = "gcc" - elseif ExecuteSilent("cl") == 0 then + if ExecuteSilent("cl") == 0 then option.driver = "cl" + elseif ExecuteSilent("g++ -v") == 0 then + option.driver = "gcc" else error("no c/c++ compiler found") end -- cgit 1.4.1