scons: Pass -Wno-parentheses-equality to clang for src/lua/ library objects

Step 2/2 in making it possible to build in strict mode with clang 3.3
and scons here.
This commit is contained in:
Ignacio R. Morelle 2014-01-25 23:41:00 -03:00
parent 0742f1c970
commit 047834e0cf

View file

@ -36,6 +36,8 @@ loadlib.cpp
linit.cpp
""")
liblua = env.Library("lua", lua_sources,
# Silence some Clang-specific warnings due to extra parentheses in if statements when comparing.
CCFLAGS = ["$CCFLAGS", "clang" in env["CXX"] and "-Wno-parentheses-equality" or []],
CCCOM = env["CXXCOM"],
CPPPATH = ["$CPPPATH", Dir(".").srcnode()],
CPPDEFINES = ["$CPPDEFINES", env["PLATFORM"] != "win32" and "LUA_USE_POSIX" or []])