Enable LTO for riscv64
This partially reverts commit 1281b99495
.
Bug: b/282584808, b/254713216
Reason for revert: LTO can be enabled as emultated tls is now globally disabled https://android-review.git.corp.google.com/c/platform/build/soong/+/2431153
Change-Id: I66c83b1116550179043490a11f66b8630c0e6b1b
This commit is contained in:
@@ -91,11 +91,6 @@ func (lto *lto) flags(ctx BaseModuleContext, flags Flags) Flags {
|
|||||||
return 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) {
|
if lto.LTO(ctx) {
|
||||||
var ltoCFlag string
|
var ltoCFlag string
|
||||||
var ltoLdFlag string
|
var ltoLdFlag string
|
||||||
|
Reference in New Issue
Block a user