aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/testdata/cros_hardened_golden/clang_specific_args.json
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/testdata/cros_hardened_golden/clang_specific_args.json')
-rw-r--r--compiler_wrapper/testdata/cros_hardened_golden/clang_specific_args.json174
1 files changed, 85 insertions, 89 deletions
diff --git a/compiler_wrapper/testdata/cros_hardened_golden/clang_specific_args.json b/compiler_wrapper/testdata/cros_hardened_golden/clang_specific_args.json
index ec91216d..65733360 100644
--- a/compiler_wrapper/testdata/cros_hardened_golden/clang_specific_args.json
+++ b/compiler_wrapper/testdata/cros_hardened_golden/clang_specific_args.json
@@ -1,51 +1,35 @@
[
{
- "wd": "/tmp/stable",
- "wrapper": {
- "cmd": {
- "path": "./x86_64-cros-linux-gnu-clang",
- "args": [
- "-mno-movbe",
- "-Wclobbered",
- "-Wno-psabi",
- "-Wlogical-op",
- "-Wmissing-parameter-type",
- "-Wold-style-declaration",
- "-Woverride-init",
- "-Wunsafe-loop-optimizations",
- "-Wstrict-aliasing=abc",
- "-finline-limit=abc",
- "main.cc"
- ]
- }
- },
"cmds": [
{
"cmd": {
- "path": "/usr/bin/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-",
@@ -59,11 +43,6 @@
"-Wunsafe-loop-optimizations",
"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",
@@ -73,60 +52,68 @@
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002",
"CCACHE_CPP2=yes"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
- },
- {
+ ],
"wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-clang",
"args": [
- "-Wno-error=cpp",
+ "-mno-movbe",
+ "-Wclobbered",
+ "-Wno-psabi",
+ "-Wlogical-op",
+ "-Wmissing-parameter-type",
+ "-Wold-style-declaration",
+ "-Woverride-init",
+ "-Wunsafe-loop-optimizations",
+ "-Wstrict-aliasing=abc",
+ "-finline-limit=abc",
"main.cc"
- ]
+ ],
+ "path": "./x86_64-cros-linux-gnu-clang"
}
- },
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "/usr/bin/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-",
"-Wno-#warnings",
"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",
@@ -136,60 +123,59 @@
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002",
"CCACHE_CPP2=yes"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
- },
- {
+ ],
"wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-clang",
"args": [
- "-Wno-error=maybe-uninitialized",
+ "-Wno-error=cpp",
"main.cc"
- ]
+ ],
+ "path": "./x86_64-cros-linux-gnu-clang"
}
- },
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "/usr/bin/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-",
"-Wno-error=uninitialized",
"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",
@@ -199,60 +185,59 @@
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002",
"CCACHE_CPP2=yes"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
- },
- {
+ ],
"wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-clang",
"args": [
- "-Xclang-only=-someflag",
+ "-Wno-error=maybe-uninitialized",
"main.cc"
- ]
+ ],
+ "path": "./x86_64-cros-linux-gnu-clang"
}
- },
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "/usr/bin/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-",
"-someflag",
"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",
@@ -262,9 +247,20 @@
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002",
"CCACHE_CPP2=yes"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
+ ],
+ "wd": "/tmp/stable",
+ "wrapper": {
+ "cmd": {
+ "args": [
+ "-Xclang-only=-someflag",
+ "main.cc"
+ ],
+ "path": "./x86_64-cros-linux-gnu-clang"
+ }
+ }
}
]