diff options
author | George Burgess IV <gbiv@google.com> | 2020-06-18 20:37:28 -0700 |
---|---|---|
committer | George Burgess <gbiv@chromium.org> | 2020-06-19 03:47:29 +0000 |
commit | 2efe72e635474b402b4cd456f51c0bc5989931aa (patch) | |
tree | decf82fe3fcefc010e789dc721933f71e403b978 /compiler_wrapper/config.go | |
parent | 576a953cb1d88d4bb2743199147b2c1899d5091c (diff) | |
download | toolchain-utils-2efe72e635474b402b4cd456f51c0bc5989931aa.tar.gz |
wrapper: print android-llvm@ when using the Android wrapper.
Otherwise, the wrapper might say:
```
Internal error. Please report to chromeos-toolchain@google.com.
```
to Android developers in some cases.
BUG=b:159291805
TEST=`go test`
Change-Id: I9a96068f02a2c6ce5e251c8754e267dfb1a30db1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2252553
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Tested-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'compiler_wrapper/config.go')
-rw-r--r-- | compiler_wrapper/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler_wrapper/config.go b/compiler_wrapper/config.go index e82e6b3d..a122b5a2 100644 --- a/compiler_wrapper/config.go +++ b/compiler_wrapper/config.go @@ -70,6 +70,10 @@ func getRealConfig() (*config, error) { return config, nil } +func isAndroidConfig() bool { + return ConfigName == "android" +} + func getConfig(configName string, useCCache bool, useLlvmNext bool, version string) (*config, error) { cfg := config{} switch configName { |