aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/testdata/cros_hardened_golden/clang_sysroot_wrapper_common.json
diff options
context:
space:
mode:
authorJian Cai <jiancai@google.com>2020-06-17 15:27:24 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-26 01:40:14 +0000
commitdc996b9cd333b330ca79985a93f9a71995676a71 (patch)
tree19c662f370a8f56d514ba9f3e2fb72b7f657dbb6 /compiler_wrapper/testdata/cros_hardened_golden/clang_sysroot_wrapper_common.json
parent0c1730a05945799cf65aced40063c17ffafe737f (diff)
downloadtoolchain-utils-dc996b9cd333b330ca79985a93f9a71995676a71.tar.gz
compiler_wrapper: redirect clang crash dignoses
Redirect all diagnoses of clang crashes to a dedicated directory using fcrash-diagnostics-dir so we can upload these files to the cloud. The flag was added to clangPostFlags to overwite redirection done on package level. BUG=chromium:1056904 TEST=None Change-Id: I78bfc77d7f3af8556b4308f2e71407d627627747 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2251038 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Commit-Queue: Jian Cai <jiancai@google.com> Tested-by: Jian Cai <jiancai@google.com>
Diffstat (limited to 'compiler_wrapper/testdata/cros_hardened_golden/clang_sysroot_wrapper_common.json')
-rw-r--r--compiler_wrapper/testdata/cros_hardened_golden/clang_sysroot_wrapper_common.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler_wrapper/testdata/cros_hardened_golden/clang_sysroot_wrapper_common.json b/compiler_wrapper/testdata/cros_hardened_golden/clang_sysroot_wrapper_common.json
index b690e3ed..e925a784 100644
--- a/compiler_wrapper/testdata/cros_hardened_golden/clang_sysroot_wrapper_common.json
+++ b/compiler_wrapper/testdata/cros_hardened_golden/clang_sysroot_wrapper_common.json
@@ -63,6 +63,7 @@
"-fuse-ld=lld",
"-Wno-final-dtor-non-final-class",
"-Werror=poison-system-directories",
+ "-fcrash-diagnostics-dir=/tmp/clang_crash_diagnostics",
"-fstack-protector-strong",
"-fPIE",
"-pie",
@@ -115,6 +116,7 @@
"-fuse-ld=lld",
"-Wno-final-dtor-non-final-class",
"-Werror=poison-system-directories",
+ "-fcrash-diagnostics-dir=/tmp/clang_crash_diagnostics",
"-fstack-protector-strong",
"-fPIE",
"-pie",
@@ -160,6 +162,7 @@
"-fuse-ld=lld",
"-Wno-final-dtor-non-final-class",
"-Werror=poison-system-directories",
+ "-fcrash-diagnostics-dir=/tmp/clang_crash_diagnostics",
"-fstack-protector-strong",
"-D_FORTIFY_SOURCE=2",
"-fno-omit-frame-pointer",
@@ -208,6 +211,7 @@
"-fuse-ld=lld",
"-Wno-final-dtor-non-final-class",
"-Werror=poison-system-directories",
+ "-fcrash-diagnostics-dir=/tmp/clang_crash_diagnostics",
"-D_FORTIFY_SOURCE=2",
"-fno-omit-frame-pointer",
"-fno-stack-protector",
@@ -257,6 +261,7 @@
"-fuse-ld=lld",
"-Wno-final-dtor-non-final-class",
"-Werror=poison-system-directories",
+ "-fcrash-diagnostics-dir=/tmp/clang_crash_diagnostics",
"-D_FORTIFY_SOURCE=2",
"-mthumb",
"-fno-stack-protector",
@@ -305,6 +310,7 @@
"-fuse-ld=lld",
"-Wno-final-dtor-non-final-class",
"-Werror=poison-system-directories",
+ "-fcrash-diagnostics-dir=/tmp/clang_crash_diagnostics",
"-fstack-protector-strong",
"-fPIE",
"-pie",