Pass compiler options to be compliant to C99 for C and C++98 for C++.
This commit is contained in:
parent
bd5ad2f0a3
commit
edf7be1b40
1 changed files with 2 additions and 2 deletions
|
@ -294,9 +294,9 @@ for env in [test_env, env]:
|
|||
env.Append(CPPDEFINES = ["HAVE_CONFIG_H"])
|
||||
|
||||
if "gcc" in env["TOOLS"]:
|
||||
env.AppendUnique(CXXFLAGS = Split("-W -Wall -ansi -Wno-unused -Wno-sign-compare"))
|
||||
env.AppendUnique(CCFLAGS = Split("-W -Wall -Wno-unused -Wno-sign-compare"), CFLAGS = ["-std=c99"], CXXFLAGS="-std=c++98")
|
||||
if env['strict']:
|
||||
env.AppendUnique(CXXFLAGS = "-Werror")
|
||||
env.AppendUnique(CCFLAGS = "-Werror")
|
||||
|
||||
env["OPT_FLAGS"] = "-O2"
|
||||
env["DEBUG_FLAGS"] = Split("-O0 -DDEBUG -ggdb3")
|
||||
|
|
Loading…
Add table
Reference in a new issue