Refine logic choosing vendor snapshot modules
This refines the vendor snapshot codes in order to fix logic errors.
- Capture toolchain_library and cc_library_headers correctly.
- Redirect unwind static library correctly.
- Filter out sanitize / coverage / lto by looking at HideFromMake.
- Add binary() function for clear and shorter codes.
- Include test modules.
- Add more tests to prevent further snapshot breakages.
Bug: 157106227
Test: m vendor-snapshot
Test: m nothing for all available targets
Test: EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true \
NATIVE_COVERAGE=true COVERAGE_PATHS="*" m nothing
Change-Id: Id90082b5ab730f928582ad24f022ba410855400e
Merged-In: Id90082b5ab730f928582ad24f022ba410855400e
(cherry picked from commit 4d8d8fec4a
)
This commit is contained in:
@@ -231,6 +231,10 @@ func (binary *binaryDecorator) staticBinary() bool {
|
||||
return binary.static()
|
||||
}
|
||||
|
||||
func (binary *binaryDecorator) binary() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (binary *binaryDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags {
|
||||
flags = binary.baseLinker.linkerFlags(ctx, flags)
|
||||
|
||||
|
Reference in New Issue
Block a user