diff options
| author | oy <Tom_Adams@web.de> | 2010-09-22 00:28:14 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-09-22 00:28:14 +0200 |
| commit | fc486cb0ab9b5a2e821236af5da24b59d92af7fa (patch) | |
| tree | 7cba96a523295ec765a6589e29cb4c55caf57729 /configure.lua | |
| parent | 08f6e7dd079380507e5d87022b58b4d586a05c6d (diff) | |
| download | zcatch-fc486cb0ab9b5a2e821236af5da24b59d92af7fa.tar.gz zcatch-fc486cb0ab9b5a2e821236af5da24b59d92af7fa.zip | |
added fix for compiling problems if cl and gcc are installed by Sworddragon. Closes #114
Diffstat (limited to 'configure.lua')
| -rw-r--r-- | configure.lua | 6 |
1 files 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 |