aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2024-02-28 18:59:30 -0800
committerRyan Prichard <rprichard@google.com>2024-02-28 19:14:59 -0800
commit21e2c10cd2e326cff0e3ea38f6d313f82f49a233 (patch)
tree9cbce91d5e0595274d0fa101d79dbfa272f6f671
parent718cf5bf193dc409a14baf67f688fced1b6e817e (diff)
disablePrebuilt: also clear sanitizer-dependent Srcs
The new libc++ prebuilt has HWASan and non-HWASan variants for arm64. Bug: 175635923 Test: checkout use-prebuilt-libcxx topic, build libc++demangle, verify that libc++demangle-install is not a valid build target Change-Id: I34385c48aa7ad1401e2547d65d30a14fa342e304
-rw-r--r--cc/prebuilt.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/prebuilt.go b/cc/prebuilt.go
index 8f4b7df42..cbb5d58db 100644
--- a/cc/prebuilt.go
+++ b/cc/prebuilt.go
@@ -260,6 +260,9 @@ func (p *prebuiltLibraryLinker) nativeCoverage() bool {
func (p *prebuiltLibraryLinker) disablePrebuilt() {
p.properties.Srcs = nil
+ p.properties.Sanitized.None.Srcs = nil
+ p.properties.Sanitized.Address.Srcs = nil
+ p.properties.Sanitized.Hwaddress.Srcs = nil
}
// Implements versionedInterface