diff options
Diffstat (limited to 'cc/clang.go')
-rw-r--r-- | cc/clang.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cc/clang.go b/cc/clang.go index 6a01010d..5e0302a5 100644 --- a/cc/clang.go +++ b/cc/clang.go @@ -84,10 +84,6 @@ func init() { // See http://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html. "-Wno-unused-command-line-argument", - // Disable -Winconsistent-missing-override until we can clean up the existing - // codebase for it. - "-Wno-inconsistent-missing-override", - // Force clang to always output color diagnostics. Ninja will strip the ANSI // color codes if it is not running in a terminal. "-fcolor-diagnostics", @@ -97,6 +93,12 @@ func init() { "-std=gnu99", }, " ")) + pctx.StaticVariable("clangExtraCppflags", strings.Join([]string{ + // Disable -Winconsistent-missing-override until we can clean up the existing + // codebase for it. + "-Wno-inconsistent-missing-override", + }, " ")) + pctx.StaticVariable("clangExtraTargetCflags", strings.Join([]string{ "-nostdlibinc", }, " ")) |