diff options
author | Tobias Bosch <tbosch@google.com> | 2019-10-17 07:44:13 -0700 |
---|---|---|
committer | Tobias Bosch <tbosch@google.com> | 2019-10-17 19:22:03 +0000 |
commit | 8cb363f62b57954ace161789eb7fa692a24f29a4 (patch) | |
tree | 38c0358978d0dab8f34c6d7bd6004dff318ef7ec /compiler_wrapper/testdata/android_golden | |
parent | 90d3658f7f8170c66f67f021df64bd421cdb7f11 (diff) | |
download | toolchain-utils-8cb363f62b57954ace161789eb7fa692a24f29a4.tar.gz |
compiler_wrapper: remove WITH_TIDY support for android.
Also consolidates most of the android specific logic
into one place so it's clear which flags are used
and which ones are not.
Also detects wrapping of clang-tidy for future
special casing.
BUG=chromium:773875
TEST=unit tests, golden tests
TEST=android's test_compiler.py --with-tidy
Change-Id: Ic83340ba63ec3ea4c3c174069d3dc017ecbcdd72
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1866603
Tested-by: Tobias Bosch <tbosch@google.com>
Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'compiler_wrapper/testdata/android_golden')
-rw-r--r-- | compiler_wrapper/testdata/android_golden/clang_path.json | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/compiler_wrapper/testdata/android_golden/clang_path.json b/compiler_wrapper/testdata/android_golden/clang_path.json index b784feb5..5686b381 100644 --- a/compiler_wrapper/testdata/android_golden/clang_path.json +++ b/compiler_wrapper/testdata/android_golden/clang_path.json @@ -49,6 +49,30 @@ }, { "wd": "/tmp/stable", + "env": [ + "WITH_TIDY=1" + ], + "wrapper": { + "cmd": { + "path": "/tmp/stable/clang", + "args": [ + "main.cc" + ] + } + }, + "cmds": [ + { + "cmd": { + "path": "/tmp/stable/clang.real", + "args": [ + "main.cc" + ] + } + } + ] + }, + { + "wd": "/tmp/stable", "wrapper": { "cmd": { "path": "/tmp/stable/clang++", @@ -91,6 +115,30 @@ }, { "wd": "/tmp/stable", + "env": [ + "WITH_TIDY=1" + ], + "wrapper": { + "cmd": { + "path": "/tmp/stable/clang-tidy", + "args": [ + "main.cc" + ] + } + }, + "cmds": [ + { + "cmd": { + "path": "/tmp/stable/clang-tidy.real", + "args": [ + "main.cc" + ] + } + } + ] + }, + { + "wd": "/tmp/stable", "wrapper": { "cmd": { "path": "a/b/c/d/e/f/g/clang", |