Merge "Revert "Build riscv64 with thin LTO""

This commit is contained in:
Aditya Kumar
2023-02-15 17:02:27 +00:00
committed by Gerrit Code Review

View File

@@ -91,6 +91,11 @@ func (lto *lto) flags(ctx BaseModuleContext, flags Flags) Flags {
return flags
}
// TODO(b/254713216): LTO doesn't work on riscv64 yet.
if ctx.Arch().ArchType == android.Riscv64 {
return flags
}
if lto.LTO(ctx) {
var ltoCFlag string
var ltoLdFlag string