diff options
author | Colin Cross <ccross@android.com> | 2019-11-13 20:11:04 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-11-14 12:58:52 -0800 |
commit | 9403b5a790a8750cc98036d0265fed99b2610b5b (patch) | |
tree | 2398af7a701ee460dcc83e87d445be1732f73edb /module_ctx_test.go | |
parent | d03b59d03e765ff7cc8258f0fddfaefca3b26d70 (diff) | |
download | blueprint-9403b5a790a8750cc98036d0265fed99b2610b5b.tar.gz |
Delay allocating variationMaps until populating them
Modules are created with a nil variantionMap, which avoids allocating
an empty map if the module will never be split.
Context.addVariationDependencies constructs a variationMap to
compare against the variationMap of each variant, but constructed
an empty variationMap if no variations were specified. A nil
map is not the same as an empty map, so consistently use a nil
map and create it when populating the first entry.
Change-Id: I48b604659f9cdb23326b504a093cdfe5a3eb4f68
Diffstat (limited to 'module_ctx_test.go')
0 files changed, 0 insertions, 0 deletions