Skip to content

Commit

Permalink
disablePrebuilt: also clear sanitizer-dependent Srcs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rprichard committed Feb 29, 2024
1 parent 718cf5b commit 21e2c10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cc/prebuilt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21e2c10

Please sign in to comment.