aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/testdata/cros_hardened_llvmnext_golden/force_disable_werror.json
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/testdata/cros_hardened_llvmnext_golden/force_disable_werror.json')
-rw-r--r--compiler_wrapper/testdata/cros_hardened_llvmnext_golden/force_disable_werror.json186
1 files changed, 91 insertions, 95 deletions
diff --git a/compiler_wrapper/testdata/cros_hardened_llvmnext_golden/force_disable_werror.json b/compiler_wrapper/testdata/cros_hardened_llvmnext_golden/force_disable_werror.json
index 9cd72611..ab17a915 100644
--- a/compiler_wrapper/testdata/cros_hardened_llvmnext_golden/force_disable_werror.json
+++ b/compiler_wrapper/testdata/cros_hardened_llvmnext_golden/force_disable_werror.json
@@ -1,54 +1,40 @@
[
{
- "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",
"-Qunused-arguments",
"-Werror=poison-system-directories",
- "-Wno-compound-token-split-by-macro",
"-Wno-deprecated-declarations",
+ "-Wno-enum-constexpr-conversion",
"-Wno-error=implicit-function-declaration",
"-Wno-error=implicit-int",
"-Wno-final-dtor-non-final-class",
+ "-Wno-single-bit-bitfield-constant-conversion",
"-Wno-tautological-constant-compare",
"-Wno-tautological-unsigned-enum-zero-compare",
"-Wno-unknown-warning-option",
"-fdebug-default-version=5",
- "-fexperimental-new-pass-manager",
+ "-Wno-int-conversion",
+ "-Wno-incompatible-function-pointer-types",
+ "-Wno-error=vla-cxx-extension",
+ "-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES",
+ "-fclang-abi-compat=17",
"--unwindlib=libunwind",
"-Wno-section",
"-fno-addrsig",
- "-fuse-ld=lld",
- "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
+ "-ftrivial-auto-var-init=zero",
"-fcommon",
"-fstack-protector-strong",
- "-D_FORTIFY_SOURCE=2",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"--prefix=../../bin/x86_64-cros-linux-gnu-",
"main.cc",
"-L/usr/x86_64-cros-linux-gnu/usr/lib64",
- "-Wno-compound-token-split-by-space",
- "-Wno-deprecated-copy",
- "-Wno-unused-but-set-variable",
- "-Wno-implicit-int-float-conversion",
- "-Wno-string-concatenation",
"-mno-movbe",
"-B../../bin",
"-target",
@@ -58,61 +44,60 @@
"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"
}
- },
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "ccache",
"args": [
"../../usr/bin/clang",
"--sysroot=/usr/x86_64-cros-linux-gnu",
"-Qunused-arguments",
"-Werror=poison-system-directories",
- "-Wno-compound-token-split-by-macro",
"-Wno-deprecated-declarations",
+ "-Wno-enum-constexpr-conversion",
"-Wno-error=implicit-function-declaration",
"-Wno-error=implicit-int",
"-Wno-final-dtor-non-final-class",
+ "-Wno-single-bit-bitfield-constant-conversion",
"-Wno-tautological-constant-compare",
"-Wno-tautological-unsigned-enum-zero-compare",
"-Wno-unknown-warning-option",
"-fdebug-default-version=5",
- "-fexperimental-new-pass-manager",
+ "-Wno-int-conversion",
+ "-Wno-incompatible-function-pointer-types",
+ "-Wno-error=vla-cxx-extension",
+ "-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES",
+ "-fclang-abi-compat=17",
"--unwindlib=libunwind",
"-Wno-section",
"-fno-addrsig",
- "-fuse-ld=lld",
- "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
+ "-ftrivial-auto-var-init=zero",
"-fcommon",
"-fstack-protector-strong",
- "-D_FORTIFY_SOURCE=2",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"--prefix=../../bin/x86_64-cros-linux-gnu-",
"main.cc",
"-L/usr/x86_64-cros-linux-gnu/usr/lib64",
- "-Wno-compound-token-split-by-space",
- "-Wno-deprecated-copy",
- "-Wno-unused-but-set-variable",
- "-Wno-implicit-int-float-conversion",
- "-Wno-string-concatenation",
"-mno-movbe",
"-B../../bin",
"-target",
@@ -122,47 +107,46 @@
"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",
"-Qunused-arguments",
"-Werror=poison-system-directories",
- "-Wno-compound-token-split-by-macro",
"-Wno-deprecated-declarations",
+ "-Wno-enum-constexpr-conversion",
"-Wno-error=implicit-function-declaration",
"-Wno-error=implicit-int",
"-Wno-final-dtor-non-final-class",
+ "-Wno-single-bit-bitfield-constant-conversion",
"-Wno-tautological-constant-compare",
"-Wno-tautological-unsigned-enum-zero-compare",
"-Wno-unknown-warning-option",
"-fdebug-default-version=5",
- "-fexperimental-new-pass-manager",
+ "-Wno-int-conversion",
+ "-Wno-incompatible-function-pointer-types",
+ "-Wno-error=vla-cxx-extension",
+ "-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES",
+ "-fclang-abi-compat=17",
"--unwindlib=libunwind",
"-Wno-section",
"-fno-addrsig",
- "-fuse-ld=lld",
- "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
+ "-ftrivial-auto-var-init=zero",
"-fcommon",
"-fstack-protector-strong",
- "-D_FORTIFY_SOURCE=2",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"--prefix=../../bin/x86_64-cros-linux-gnu-",
"main.cc",
"-L/usr/x86_64-cros-linux-gnu/usr/lib64",
- "-Wno-compound-token-split-by-space",
- "-Wno-deprecated-copy",
- "-Wno-unused-but-set-variable",
- "-Wno-implicit-int-float-conversion",
- "-Wno-string-concatenation",
"-mno-movbe",
"-B../../bin",
"-target",
@@ -174,63 +158,61 @@
"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",
"-Qunused-arguments",
"-Werror=poison-system-directories",
- "-Wno-compound-token-split-by-macro",
"-Wno-deprecated-declarations",
+ "-Wno-enum-constexpr-conversion",
"-Wno-error=implicit-function-declaration",
"-Wno-error=implicit-int",
"-Wno-final-dtor-non-final-class",
+ "-Wno-single-bit-bitfield-constant-conversion",
"-Wno-tautological-constant-compare",
"-Wno-tautological-unsigned-enum-zero-compare",
"-Wno-unknown-warning-option",
"-fdebug-default-version=5",
- "-fexperimental-new-pass-manager",
+ "-Wno-int-conversion",
+ "-Wno-incompatible-function-pointer-types",
+ "-Wno-error=vla-cxx-extension",
+ "-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES",
+ "-fclang-abi-compat=17",
"--unwindlib=libunwind",
"-Wno-section",
"-fno-addrsig",
- "-fuse-ld=lld",
- "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
+ "-ftrivial-auto-var-init=zero",
"-fcommon",
"-fstack-protector-strong",
- "-D_FORTIFY_SOURCE=2",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"--prefix=../../bin/x86_64-cros-linux-gnu-",
"main.cc",
"-L/usr/x86_64-cros-linux-gnu/usr/lib64",
- "-Wno-compound-token-split-by-space",
- "-Wno-deprecated-copy",
- "-Wno-unused-but-set-variable",
- "-Wno-implicit-int-float-conversion",
- "-Wno-string-concatenation",
"-mno-movbe",
"-B../../bin",
"-target",
@@ -240,47 +222,46 @@
"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",
"-Qunused-arguments",
"-Werror=poison-system-directories",
- "-Wno-compound-token-split-by-macro",
"-Wno-deprecated-declarations",
+ "-Wno-enum-constexpr-conversion",
"-Wno-error=implicit-function-declaration",
"-Wno-error=implicit-int",
"-Wno-final-dtor-non-final-class",
+ "-Wno-single-bit-bitfield-constant-conversion",
"-Wno-tautological-constant-compare",
"-Wno-tautological-unsigned-enum-zero-compare",
"-Wno-unknown-warning-option",
"-fdebug-default-version=5",
- "-fexperimental-new-pass-manager",
+ "-Wno-int-conversion",
+ "-Wno-incompatible-function-pointer-types",
+ "-Wno-error=vla-cxx-extension",
+ "-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES",
+ "-fclang-abi-compat=17",
"--unwindlib=libunwind",
"-Wno-section",
"-fno-addrsig",
- "-fuse-ld=lld",
- "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
+ "-ftrivial-auto-var-init=zero",
"-fcommon",
"-fstack-protector-strong",
- "-D_FORTIFY_SOURCE=2",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"--prefix=../../bin/x86_64-cros-linux-gnu-",
"main.cc",
"-L/usr/x86_64-cros-linux-gnu/usr/lib64",
- "-Wno-compound-token-split-by-space",
- "-Wno-deprecated-copy",
- "-Wno-unused-but-set-variable",
- "-Wno-implicit-int-float-conversion",
- "-Wno-string-concatenation",
"-mno-movbe",
"-B../../bin",
"-target",
@@ -292,12 +273,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]"
+ }
}
]