diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2020-02-26 17:59:58 -0800 |
---|---|---|
committer | George Burgess <gbiv@chromium.org> | 2020-02-28 17:33:01 +0000 |
commit | c3bb0cbac10890324c5004fd6d7819102a2e6995 (patch) | |
tree | fde36cf96f66ded8d3cacc10de9f97bceeb323d8 /compiler_wrapper/testdata/cros_nonhardened_golden | |
parent | ee7e22c6435048f1b37db4d944e3b6f4c65a77e5 (diff) | |
download | toolchain-utils-c3bb0cbac10890324c5004fd6d7819102a2e6995.tar.gz |
When double-build-with-Wno-error, add -Wno-error=foo for -Werror=foo
This will gracefully handle cases where a warning enforced with -Werror
got stricter in upstream.
This change also needs updates to golden testdata. No additional tests
added since this is covered by existing tests.
Originally reviewed in https://android-review.googlesource.com/c/1244796.
BUG=b:149836702
TEST=go test
Change-Id: I94624deb258b15e131387377b99bfb1747dca1a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2079548
Tested-by: Pirama Arumuga Nainar <pirama@google.com>
Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'compiler_wrapper/testdata/cros_nonhardened_golden')
-rw-r--r-- | compiler_wrapper/testdata/cros_nonhardened_golden/force_disable_werror.json | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler_wrapper/testdata/cros_nonhardened_golden/force_disable_werror.json b/compiler_wrapper/testdata/cros_nonhardened_golden/force_disable_werror.json index 787ce95d..9787e8a6 100644 --- a/compiler_wrapper/testdata/cros_nonhardened_golden/force_disable_werror.json +++ b/compiler_wrapper/testdata/cros_nonhardened_golden/force_disable_werror.json @@ -112,7 +112,8 @@ "-B../../bin", "-target", "x86_64-cros-linux-gnu", - "-Wno-error" + "-Wno-error", + "-Wno-error=poison-system-directories" ], "env_updates": [ "CCACHE_BASEDIR=/usr/x86_64-cros-linux-gnu", @@ -193,7 +194,8 @@ "-B../../bin", "-target", "x86_64-cros-linux-gnu", - "-Wno-error" + "-Wno-error", + "-Wno-error=poison-system-directories" ], "env_updates": [ "CCACHE_BASEDIR=/usr/x86_64-cros-linux-gnu", |