Skip to content

Commit

Permalink
Merge changes I34385c48,I1e48947c into main am: 45ac47e am: 4e2594e
Browse files Browse the repository at this point in the history
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2983535

Change-Id: Ia90c0116660103fbda31cad4ef91ef116bb1deb9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
  • Loading branch information
rprichard authored and android-build-merge-worker-robot committed Feb 29, 2024
2 parents 5cb6758 + 4e2594e commit a5aa1fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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
12 changes: 7 additions & 5 deletions cc/stl.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,14 @@ func (stl *stl) flags(ctx ModuleContext, flags Flags) Flags {
flags.extraLibFlags = append(flags.extraLibFlags, "-nostdlib++")
if ctx.Windows() {
flags.Local.CppFlags = append(flags.Local.CppFlags,
// Disable visiblity annotations since we're using static
// libc++.
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
"-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
// These macros can also be defined by libc++'s __config
// or __config_site headers so define them the same way
// (i.e. to nothing). Disable visibility annotations since
// we're using static libc++.
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS=",
"-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS=",
// Use Win32 threads in libc++.
"-D_LIBCPP_HAS_THREAD_API_WIN32")
"-D_LIBCPP_HAS_THREAD_API_WIN32=")
}
}
case "libstdc++":
Expand Down

0 comments on commit a5aa1fc

Please sign in to comment.