diff options
author | Colin Cross <ccross@android.com> | 2019-01-24 14:58:11 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-01-25 21:26:53 +0000 |
commit | cb9880786d611ebb44f28752c383b11c3c686b9c (patch) | |
tree | 49b3b7814c5f6402d4d0793a1a2727769808d095 /Android.bp | |
parent | ea5c1f453cf797c90ccfae10d6f4af08263e1d6f (diff) | |
download | build_soong-cb9880786d611ebb44f28752c383b11c3c686b9c.tar.gz build_soong-cb9880786d611ebb44f28752c383b11c3c686b9c.tar.bz2 build_soong-cb9880786d611ebb44f28752c383b11c3c686b9c.zip |
Optimize filterArchStruct when nothing is filtered
Runtime-created struct types have limit on the name of the type,
which is the full text of the fields in the struct. Avoid creating
runtime struct types when filtering produces an identical struct.
Also add tests and godoc for filterArchStruct.
Test: arch_test.go
Change-Id: If7eb27ea9e72073d5252e93f2110b08889ed76b1
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -71,6 +71,7 @@ bootstrap_go_package { "android/env.go", ], testSrcs: [ + "android/arch_test.go", "android/config_test.go", "android/expand_test.go", "android/namespace_test.go", |