aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/testdata/cros_nonhardened_golden/force_disable_werror.json
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/testdata/cros_nonhardened_golden/force_disable_werror.json')
-rw-r--r--compiler_wrapper/testdata/cros_nonhardened_golden/force_disable_werror.json139
1 files changed, 52 insertions, 87 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 ff37898f..0bc33451 100644
--- a/compiler_wrapper/testdata/cros_nonhardened_golden/force_disable_werror.json
+++ b/compiler_wrapper/testdata/cros_nonhardened_golden/force_disable_werror.json
@@ -1,21 +1,8 @@
[
{
- "wd": "/tmp/stable",
- "env": [
- "FORCE_DISABLE_WERROR=1"
- ],
- "wrapper": {
- "cmd": {
- "path": "./x86_64-cros-linux-gnu-clang",
- "args": [
- "main.cc"
- ]
- }
- },
"cmds": [
{
"cmd": {
- "path": "ccache",
"args": [
"../../usr/bin/clang",
"--sysroot=/usr/x86_64-cros-linux-gnu",
@@ -36,19 +23,12 @@
"-Wno-int-conversion",
"-Wno-incompatible-function-pointer-types",
"-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES",
+ "-fclang-abi-compat=17",
"-Wno-section",
- "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
"-static-libgcc",
"--prefix=../../bin/x86_64-cros-linux-gnu-",
"main.cc",
"-L/usr/x86_64-cros-linux-gnu/usr/lib64",
- "-Wno-array-parameter",
- "-Wno-compound-token-split-by-space",
- "-Wno-deprecated-copy",
- "-Wno-unused-but-set-variable",
- "-Wno-implicit-int-float-conversion",
- "-Wno-string-concatenation",
- "-Wno-gnu-offsetof-extensions",
"-mno-movbe",
"-B../../bin",
"-target",
@@ -58,29 +38,28 @@
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002",
"CCACHE_CPP2=yes"
- ]
+ ],
+ "path": "ccache"
}
}
- ]
- },
- {
- "wd": "/tmp/stable",
+ ],
"env": [
"FORCE_DISABLE_WERROR=1"
],
+ "wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-clang",
"args": [
"main.cc"
- ]
- },
- "stdout": "$CROS_ARTIFACTS_TMP_DIR is not set, artifacts will be written to /tmp"
- },
+ ],
+ "path": "./x86_64-cros-linux-gnu-clang"
+ }
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "ccache",
"args": [
"../../usr/bin/clang",
"--sysroot=/usr/x86_64-cros-linux-gnu",
@@ -101,19 +80,12 @@
"-Wno-int-conversion",
"-Wno-incompatible-function-pointer-types",
"-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES",
+ "-fclang-abi-compat=17",
"-Wno-section",
- "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
"-static-libgcc",
"--prefix=../../bin/x86_64-cros-linux-gnu-",
"main.cc",
"-L/usr/x86_64-cros-linux-gnu/usr/lib64",
- "-Wno-array-parameter",
- "-Wno-compound-token-split-by-space",
- "-Wno-deprecated-copy",
- "-Wno-unused-but-set-variable",
- "-Wno-implicit-int-float-conversion",
- "-Wno-string-concatenation",
- "-Wno-gnu-offsetof-extensions",
"-mno-movbe",
"-B../../bin",
"-target",
@@ -123,14 +95,14 @@
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002",
"CCACHE_CPP2=yes"
- ]
+ ],
+ "path": "ccache"
},
- "stderr": "-Werror originalerror",
- "exitcode": 1
+ "exitcode": 1,
+ "stderr": "error: foo [-Werror,-Wfoo]"
},
{
"cmd": {
- "path": "ccache",
"args": [
"../../usr/bin/clang",
"--sysroot=/usr/x86_64-cros-linux-gnu",
@@ -151,19 +123,12 @@
"-Wno-int-conversion",
"-Wno-incompatible-function-pointer-types",
"-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES",
+ "-fclang-abi-compat=17",
"-Wno-section",
- "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
"-static-libgcc",
"--prefix=../../bin/x86_64-cros-linux-gnu-",
"main.cc",
"-L/usr/x86_64-cros-linux-gnu/usr/lib64",
- "-Wno-array-parameter",
- "-Wno-compound-token-split-by-space",
- "-Wno-deprecated-copy",
- "-Wno-unused-but-set-variable",
- "-Wno-implicit-int-float-conversion",
- "-Wno-string-concatenation",
- "-Wno-gnu-offsetof-extensions",
"-mno-movbe",
"-B../../bin",
"-target",
@@ -175,30 +140,29 @@
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002",
"CCACHE_CPP2=yes"
- ]
+ ],
+ "path": "ccache"
}
}
- ]
- },
- {
- "wd": "/tmp/stable",
+ ],
"env": [
"FORCE_DISABLE_WERROR=1"
],
+ "wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-clang",
"args": [
"main.cc"
- ]
+ ],
+ "path": "./x86_64-cros-linux-gnu-clang"
},
- "stderr": "-Werror originalerror",
- "exitcode": 1
- },
+ "stdout": "$CROS_ARTIFACTS_TMP_DIR is not set, artifacts will be written to /tmp"
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "ccache",
"args": [
"../../usr/bin/clang",
"--sysroot=/usr/x86_64-cros-linux-gnu",
@@ -219,19 +183,12 @@
"-Wno-int-conversion",
"-Wno-incompatible-function-pointer-types",
"-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES",
+ "-fclang-abi-compat=17",
"-Wno-section",
- "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
"-static-libgcc",
"--prefix=../../bin/x86_64-cros-linux-gnu-",
"main.cc",
"-L/usr/x86_64-cros-linux-gnu/usr/lib64",
- "-Wno-array-parameter",
- "-Wno-compound-token-split-by-space",
- "-Wno-deprecated-copy",
- "-Wno-unused-but-set-variable",
- "-Wno-implicit-int-float-conversion",
- "-Wno-string-concatenation",
- "-Wno-gnu-offsetof-extensions",
"-mno-movbe",
"-B../../bin",
"-target",
@@ -241,14 +198,14 @@
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002",
"CCACHE_CPP2=yes"
- ]
+ ],
+ "path": "ccache"
},
- "stderr": "-Werror originalerror",
- "exitcode": 1
+ "exitcode": 1,
+ "stderr": "error: foo [-Werror,-Wfoo]"
},
{
"cmd": {
- "path": "ccache",
"args": [
"../../usr/bin/clang",
"--sysroot=/usr/x86_64-cros-linux-gnu",
@@ -269,19 +226,12 @@
"-Wno-int-conversion",
"-Wno-incompatible-function-pointer-types",
"-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES",
+ "-fclang-abi-compat=17",
"-Wno-section",
- "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
"-static-libgcc",
"--prefix=../../bin/x86_64-cros-linux-gnu-",
"main.cc",
"-L/usr/x86_64-cros-linux-gnu/usr/lib64",
- "-Wno-array-parameter",
- "-Wno-compound-token-split-by-space",
- "-Wno-deprecated-copy",
- "-Wno-unused-but-set-variable",
- "-Wno-implicit-int-float-conversion",
- "-Wno-string-concatenation",
- "-Wno-gnu-offsetof-extensions",
"-mno-movbe",
"-B../../bin",
"-target",
@@ -293,12 +243,27 @@
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002",
"CCACHE_CPP2=yes"
- ]
+ ],
+ "path": "ccache"
},
- "stdout": "somemessage",
+ "exitcode": 1,
"stderr": "someerror",
- "exitcode": 1
+ "stdout": "somemessage"
}
- ]
+ ],
+ "env": [
+ "FORCE_DISABLE_WERROR=1"
+ ],
+ "wd": "/tmp/stable",
+ "wrapper": {
+ "cmd": {
+ "args": [
+ "main.cc"
+ ],
+ "path": "./x86_64-cros-linux-gnu-clang"
+ },
+ "exitcode": 1,
+ "stderr": "error: foo [-Werror,-Wfoo]"
+ }
}
]