diff options
Diffstat (limited to 'compiler_wrapper/testdata/cros_hardened_golden/clang_path.json')
-rw-r--r-- | compiler_wrapper/testdata/cros_hardened_golden/clang_path.json | 53 |
1 files changed, 51 insertions, 2 deletions
diff --git a/compiler_wrapper/testdata/cros_hardened_golden/clang_path.json b/compiler_wrapper/testdata/cros_hardened_golden/clang_path.json index a2a03b72..8fc8d69f 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/clang_path.json +++ b/compiler_wrapper/testdata/cros_hardened_golden/clang_path.json @@ -411,7 +411,7 @@ "wd": "/tmp/stable", "wrapper": { "cmd": { - "path": "a/b/c/d/e/f/g/x86_64-cros-linux-gnu-clang", + "path": "./a/b/c/d/e/f/g/x86_64-cros-linux-gnu-clang", "args": [ "main.cc" ] @@ -456,7 +456,7 @@ "wd": "/tmp/stable", "wrapper": { "cmd": { - "path": "symlinked/x86_64-cros-linux-gnu-clang", + "path": "./symlinked/x86_64-cros-linux-gnu-clang", "args": [ "main.cc" ] @@ -496,5 +496,54 @@ } } ] + }, + { + "wd": "/tmp/stable", + "env": [ + "PATH=/tmp/stable/pathenv" + ], + "wrapper": { + "cmd": { + "path": "x86_64-cros-linux-gnu-clang", + "args": [ + "main.cc" + ] + } + }, + "cmds": [ + { + "cmd": { + "path": "/usr/bin/ccache", + "args": [ + "/usr/bin/clang", + "--sysroot=/usr/x86_64-cros-linux-gnu", + "-Qunused-arguments", + "-grecord-gcc-switches", + "-fno-addrsig", + "-Wno-implicit-int-float-conversion", + "-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" + ], + "env_updates": [ + "CCACHE_BASEDIR=/usr/x86_64-cros-linux-gnu", + "CCACHE_DIR=/var/cache/distfiles/ccache", + "CCACHE_UMASK=002", + "CCACHE_CPP2=yes" + ] + } + } + ] } ] |