Merge "Do not explicitly link ucrt, ucrtbase" am: c6453295a2 am: f035f6f5f6

Change-Id: I3448637762f9fe25779c02830a53509f03ab87a5
This commit is contained in:
Automerger Merge Worker 2020-03-07 21:49:31 +00:00
commit 9a2d6f4d18

View file

@ -235,11 +235,6 @@ func (stl *stl) flags(ctx ModuleContext, flags Flags) Flags {
flags.Local.CppFlags = append(flags.Local.CppFlags, "-nostdinc++")
flags.extraLibFlags = append(flags.extraLibFlags, "-nostdlib++")
if ctx.Windows() {
if stl.Properties.SelectedStl == "libc++_static" {
// These are transitively needed by libc++_static.
flags.extraLibFlags = append(flags.extraLibFlags,
"-lmsvcrt", "-lucrt")
}
// Use SjLj exceptions for 32-bit. libgcc_eh implements SjLj
// exception model for 32-bit.
if ctx.Arch().ArchType == android.X86 {