Recognize C language in the test flags script
This commit is contained in:
parent
049d3c309b
commit
0688ac7e07
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ def get_cflags(language, std, compiler):
|
||||||
# use c99 or gnu99 if feature is necessary for using target language
|
# use c99 or gnu99 if feature is necessary for using target language
|
||||||
c_common = c_common + " -Wdeclaration-after-statement"
|
c_common = c_common + " -Wdeclaration-after-statement"
|
||||||
cflags = {
|
cflags = {
|
||||||
|
"c":"-Werror " + c_common,
|
||||||
"csharp":"-Werror " + c_common,
|
"csharp":"-Werror " + c_common,
|
||||||
"d":"-Werror " + c_common,
|
"d":"-Werror " + c_common,
|
||||||
"go":"-Werror " + c_common,
|
"go":"-Werror " + c_common,
|
||||||
|
|
@ -40,6 +41,7 @@ def get_cxxflags(language, std, compiler):
|
||||||
std = "c++98"
|
std = "c++98"
|
||||||
cxx_common = "-fdiagnostics-show-option -std=" + std + " -Wno-long-long -Wreturn-type -Wmissing-field-initializers"
|
cxx_common = "-fdiagnostics-show-option -std=" + std + " -Wno-long-long -Wreturn-type -Wmissing-field-initializers"
|
||||||
cxxflags = {
|
cxxflags = {
|
||||||
|
"c":"-Werror " + cxx_common,
|
||||||
"csharp":"-Werror " + cxx_common,
|
"csharp":"-Werror " + cxx_common,
|
||||||
"d":"-Werror " + cxx_common,
|
"d":"-Werror " + cxx_common,
|
||||||
"go":"-Werror " + cxx_common,
|
"go":"-Werror " + cxx_common,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue