Skip to content

Commit

Permalink
fixed issues with CC environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Auvinen committed Jun 19, 2016
1 parent 6fc090c commit 27b28f0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ function SetDefaultDrivers(settings)
if _checked_default_drivers == false then
_checked_default_drivers = true
if os.getenv("CC") then
if string.match(os.getenv("CC"), "^clang") then
print("CLANG!")
if string.match(os.getenv("CC"), ".*clang.*") then
SetDriversDefault = SetDriversClang
elseif string.match(os.getenv("CC"), "^gcc") then
print("GCC!")
elseif string.match(os.getenv("CC"), ".*gcc.*") then
SetDriversDefault = SetDriversGCC
elseif string.match(os.getenv("CC"), "^clang") then
print("CL!")
elseif string.match(os.getenv("CC"), ".*cl.*") then
SetDriversDefault = SetDriversCL
end
else
Expand Down

0 comments on commit 27b28f0

Please sign in to comment.