Merged in nitingupta910/premake-dev (pull request #81)
Fixes for gcc/clang
This commit is contained in:
commit
27cbd39b1d
@ -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
|
||||
|
@ -96,6 +96,7 @@
|
||||
Strict = "-ffloat-store",
|
||||
},
|
||||
optimize = {
|
||||
Off = "-O0",
|
||||
On = "-O2",
|
||||
Size = "-Os",
|
||||
Speed = "-O3",
|
||||
|
@ -32,7 +32,7 @@
|
||||
test.capture [[
|
||||
ifeq ($(config),debug)
|
||||
CC = clang
|
||||
CXX = clang
|
||||
CXX = clang++
|
||||
AR = ar
|
||||
]]
|
||||
end
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user