Merged in nitingupta910/premake-dev (pull request #81)

Fixes for gcc/clang
This commit is contained in:
Jason Perkins 2013-10-09 11:34:58 -04:00
commit 27cbd39b1d
4 changed files with 10 additions and 2 deletions

View File

@ -214,8 +214,10 @@
if tool == "ar" then
return "ar"
else
elseif tool == "cc" then
return "clang"
elseif tool == "cxx" then
return "clang++"
end
end

View File

@ -96,6 +96,7 @@
Strict = "-ffloat-store",
},
optimize = {
Off = "-O0",
On = "-O2",
Size = "-Os",
Speed = "-O3",

View File

@ -32,7 +32,7 @@
test.capture [[
ifeq ($(config),debug)
CC = clang
CXX = clang
CXX = clang++
AR = ar
]]
end

View File

@ -114,6 +114,11 @@
test.isequal({ "-msse2" }, gcc.getcflags(cfg))
end
function suite.cflags_onNoOptimize()
optimize "Off"
prepare()
test.isequal({ "-O0" }, gcc.getcflags(cfg))
end
--
-- Check the translation of CXXFLAGS.