aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json')
-rw-r--r--compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json134
1 files changed, 53 insertions, 81 deletions
diff --git a/compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json b/compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json
index 03d90589..1d8d32c1 100644
--- a/compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json
+++ b/compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json
@@ -1,28 +1,8 @@
[
{
- "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",
@@ -43,8 +23,8 @@
"-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-",
"-mno-movbe",
@@ -57,13 +37,6 @@
"-Wunsafe-loop-optimizations",
"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",
@@ -73,26 +46,35 @@
"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",
@@ -113,20 +95,13 @@
"-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-",
"-Wno-#warnings",
"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",
@@ -136,26 +111,26 @@
"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",
@@ -176,20 +151,13 @@
"-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-",
"-Wno-error=uninitialized",
"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",
@@ -199,26 +167,26 @@
"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",
@@ -239,20 +207,13 @@
"-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-",
"-someflag",
"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",
@@ -262,9 +223,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"
+ }
+ }
}
]