aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/config.go
diff options
context:
space:
mode:
authorTobias Bosch <tbosch@google.com>2019-07-09 08:09:01 -0700
committerTobias Bosch <tbosch@google.com>2019-07-10 08:20:14 +0000
commitf6d9f4fdcc43f17bdc21420e4bbdf194be420f35 (patch)
treef174be290092fc437f6706f2f3d73883233acc5c /compiler_wrapper/config.go
parent21b943579e2658800753c23b8a0bf2b07b2022e6 (diff)
downloadtoolchain-utils-f6d9f4fdcc43f17bdc21420e4bbdf194be420f35.tar.gz
Support second execution of the compiler with -Wno-error
BUG=chromium:773875 TEST=unit test Change-Id: Ib77fd7c166a13acb733a1dbdfd88129141c4227a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1692969 Reviewed-by: Tobias Bosch <tbosch@google.com> Tested-by: Tobias Bosch <tbosch@google.com>
Diffstat (limited to 'compiler_wrapper/config.go')
-rw-r--r--compiler_wrapper/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler_wrapper/config.go b/compiler_wrapper/config.go
index 34bfc122..5e594cc3 100644
--- a/compiler_wrapper/config.go
+++ b/compiler_wrapper/config.go
@@ -21,6 +21,8 @@ type config struct {
mockOldWrapperCmds bool
// Whether to overwrite the config in the old wrapper.
overwriteOldWrapperCfg bool
+ // Directory to store errors that were prevented with -Wno-error.
+ newWarningsDir string
}
// UseCCache can be set via a linker flag.
@@ -90,6 +92,7 @@ func getCrosHardenedConfig(useCCache bool) *config {
"-fno-addrsig",
"-Wno-tautological-constant-compare",
},
+ newWarningsDir: "/tmp/fatal_clang_warnings",
}
}
@@ -116,5 +119,6 @@ func getCrosNonHardenedConfig(useCCache bool) *config {
"-Wno-tautological-unsigned-enum-zero-compare",
"-Wno-tautological-constant-compare",
},
+ newWarningsDir: "/tmp/fatal_clang_warnings",
}
}