diff options
Diffstat (limited to 'compiler_wrapper/testdata/android_golden/compile_with_fallback.json')
-rw-r--r-- | compiler_wrapper/testdata/android_golden/compile_with_fallback.json | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/compiler_wrapper/testdata/android_golden/compile_with_fallback.json b/compiler_wrapper/testdata/android_golden/compile_with_fallback.json new file mode 100644 index 00000000..509583ae --- /dev/null +++ b/compiler_wrapper/testdata/android_golden/compile_with_fallback.json @@ -0,0 +1,115 @@ +[ + { + "wd": "/tmp/stable", + "env": [ + "ANDROID_LLVM_PREBUILT_COMPILER_PATH=fallback_compiler", + "ANDROID_LLVM_STDERR_REDIRECT=/tmp/stable/fallback_stderr", + "ANDROID_LLVM_FALLBACK_DISABLED_WARNINGS=-a -b" + ], + "wrapper": { + "cmd": { + "path": "/tmp/stable/clang", + "args": [ + "main.cc" + ] + } + }, + "cmds": [ + { + "cmd": { + "path": "/tmp/stable/clang.real", + "args": [ + "main.cc", + "-fno-color-diagnostics", + "-a", + "-b" + ] + } + } + ] + }, + { + "wd": "/tmp/stable", + "env": [ + "ANDROID_LLVM_PREBUILT_COMPILER_PATH=fallback_compiler", + "ANDROID_LLVM_STDERR_REDIRECT=/tmp/stable/fallback_stderr", + "ANDROID_LLVM_FALLBACK_DISABLED_WARNINGS=-a -b" + ], + "wrapper": { + "cmd": { + "path": "/tmp/stable/clang", + "args": [ + "main.cc" + ] + } + }, + "cmds": [ + { + "cmd": { + "path": "/tmp/stable/clang.real", + "args": [ + "main.cc", + "-fno-color-diagnostics", + "-a", + "-b" + ] + }, + "exitcode": 1 + }, + { + "cmd": { + "path": "fallback_compiler/clang", + "args": [ + "main.cc" + ], + "env_updates": [ + "ANDROID_LLVM_PREBUILT_COMPILER_PATH=" + ] + } + } + ] + }, + { + "wd": "/tmp/stable", + "env": [ + "ANDROID_LLVM_PREBUILT_COMPILER_PATH=fallback_compiler", + "ANDROID_LLVM_STDERR_REDIRECT=/tmp/stable/fallback_stderr", + "ANDROID_LLVM_FALLBACK_DISABLED_WARNINGS=-a -b" + ], + "wrapper": { + "cmd": { + "path": "/tmp/stable/clang", + "args": [ + "main.cc" + ] + }, + "exitcode": 1 + }, + "cmds": [ + { + "cmd": { + "path": "/tmp/stable/clang.real", + "args": [ + "main.cc", + "-fno-color-diagnostics", + "-a", + "-b" + ] + }, + "exitcode": 1 + }, + { + "cmd": { + "path": "fallback_compiler/clang", + "args": [ + "main.cc" + ], + "env_updates": [ + "ANDROID_LLVM_PREBUILT_COMPILER_PATH=" + ] + }, + "exitcode": 1 + } + ] + } +] |