Recognize C language in the test flags script

This commit is contained in:
Vadim Zeitlin 2022-09-17 15:37:51 +02:00
commit 0688ac7e07

View file

@ -9,6 +9,7 @@ def get_cflags(language, std, compiler):
# use c99 or gnu99 if feature is necessary for using target language
c_common = c_common + " -Wdeclaration-after-statement"
cflags = {
"c":"-Werror " + c_common,
"csharp":"-Werror " + c_common,
"d":"-Werror " + c_common,
"go":"-Werror " + c_common,
@ -40,6 +41,7 @@ def get_cxxflags(language, std, compiler):
std = "c++98"
cxx_common = "-fdiagnostics-show-option -std=" + std + " -Wno-long-long -Wreturn-type -Wmissing-field-initializers"
cxxflags = {
"c":"-Werror " + cxx_common,
"csharp":"-Werror " + cxx_common,
"d":"-Werror " + cxx_common,
"go":"-Werror " + cxx_common,