aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json
diff options
context:
space:
mode:
authorTobias Bosch <tbosch@google.com>2019-08-26 12:53:41 -0700
committerTobias Bosch <tbosch@google.com>2019-08-26 20:54:57 +0000
commit5edca5060f78aa51cb2730051f78b9251b1d9d34 (patch)
tree0e0d32b7bfd554630d1a7c5fe003d2694284efaa /compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json
parent42235709e88cbb239b9514d888919beb7c4a2c9e (diff)
downloadtoolchain-utils-5edca5060f78aa51cb2730051f78b9251b1d9d34.tar.gz
Only resolve cmd path against $PATH if path does not contain a folder.
BUG=chromium:773875 TEST=unit test Change-Id: I442afcfac00bcdbdfa33b739087af12987c57584 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1772176 Tested-by: Tobias Bosch <tbosch@google.com> Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json')
-rw-r--r--compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json38
1 files changed, 38 insertions, 0 deletions
diff --git a/compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json b/compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json
index 5f193151..b1517675 100644
--- a/compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json
+++ b/compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json
@@ -436,6 +436,44 @@
},
{
"wd": "/tmp/stable",
+ "wrapper": {
+ "cmd": {
+ "path": "somedir/x86_64-cros-linux-gnu-clang",
+ "args": [
+ "main.cc"
+ ]
+ }
+ },
+ "cmds": [
+ {
+ "cmd": {
+ "path": "../../usr/bin/clang",
+ "args": [
+ "--sysroot=/usr/x86_64-cros-linux-gnu",
+ "-Qunused-arguments",
+ "-grecord-gcc-switches",
+ "-fno-addrsig",
+ "-Wno-tautological-constant-compare",
+ "-Wno-tautological-unsigned-enum-zero-compare",
+ "-Wno-unknown-warning-option",
+ "-Wno-section",
+ "-static-libgcc",
+ "-fstack-protector-strong",
+ "-fPIE",
+ "-pie",
+ "-D_FORTIFY_SOURCE=2",
+ "-fno-omit-frame-pointer",
+ "main.cc",
+ "-B../../bin",
+ "-target",
+ "x86_64-cros-linux-gnu"
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "wd": "/tmp/stable",
"env": [
"PATH=/tmp/stable/pathenv"
],