diff options
Diffstat (limited to 'compiler_wrapper/testdata/cros_hardened_noccache_golden/gcc_path.json')
-rw-r--r-- | compiler_wrapper/testdata/cros_hardened_noccache_golden/gcc_path.json | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/compiler_wrapper/testdata/cros_hardened_noccache_golden/gcc_path.json b/compiler_wrapper/testdata/cros_hardened_noccache_golden/gcc_path.json index 66957f5b..694b921a 100644 --- a/compiler_wrapper/testdata/cros_hardened_noccache_golden/gcc_path.json +++ b/compiler_wrapper/testdata/cros_hardened_noccache_golden/gcc_path.json @@ -102,7 +102,7 @@ "wd": "/tmp/stable", "wrapper": { "cmd": { - "path": "a/b/c/d/e/f/g/x86_64-cros-linux-gnu-gcc", + "path": "./a/b/c/d/e/f/g/x86_64-cros-linux-gnu-gcc", "args": [ "main.cc" ] @@ -111,7 +111,7 @@ "cmds": [ { "cmd": { - "path": "a/b/c/d/e/f/g/x86_64-cros-linux-gnu-gcc.real", + "path": "./a/b/c/d/e/f/g/x86_64-cros-linux-gnu-gcc.real", "args": [ "--sysroot=/tmp/stable/a/b/usr/x86_64-cros-linux-gnu", "-fno-reorder-blocks-and-partition", @@ -133,7 +133,7 @@ "wd": "/tmp/stable", "wrapper": { "cmd": { - "path": "symlinked/x86_64-cros-linux-gnu-gcc", + "path": "./symlinked/x86_64-cros-linux-gnu-gcc", "args": [ "main.cc" ] @@ -142,7 +142,7 @@ "cmds": [ { "cmd": { - "path": "symlinked/x86_64-cros-linux-gnu-gcc.real", + "path": "./symlinked/x86_64-cros-linux-gnu-gcc.real", "args": [ "--sysroot=/tmp/stable/a/b/usr/x86_64-cros-linux-gnu", "-fno-reorder-blocks-and-partition", @@ -159,5 +159,39 @@ } } ] + }, + { + "wd": "/tmp/stable", + "env": [ + "PATH=/tmp/stable/pathenv" + ], + "wrapper": { + "cmd": { + "path": "x86_64-cros-linux-gnu-gcc", + "args": [ + "main.cc" + ] + } + }, + "cmds": [ + { + "cmd": { + "path": "/tmp/stable/pathenv/x86_64-cros-linux-gnu-gcc.real", + "args": [ + "--sysroot=/usr/x86_64-cros-linux-gnu", + "-fno-reorder-blocks-and-partition", + "-Wno-unused-local-typedefs", + "-Wno-maybe-uninitialized", + "-fstack-protector-strong", + "-fPIE", + "-pie", + "-D_FORTIFY_SOURCE=2", + "-fno-omit-frame-pointer", + "main.cc", + "-mno-movbe" + ] + } + } + ] } ] |