Detecting -Wno-<warning> flags can be tricky with GCC (See https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html). This patch adds a special addWarningFlagIfSupported(<flag>) method to the test compiler object that can be used to add warning flags. The goal of this patch is to help get the test suite running with more warnings.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Those methods are currently unused but are you opposed to me adding them in this patch? They will be useful for compiling short tests to check for compiler features.
Comment Actions
I'd say put them in when you have actual uses for them....
test/libcxx/compiler.py | ||
---|---|---|
195 | ... you could at least use compileString here. |
Comment Actions
Remove unused "CompileString" functions. The reason they can't be used to implement addWarningFlagIfSupported is because we have to fuss with the flags before invoking the compiler .
this looks unused to me.