Merge "Remove unneeded MLGO cflag" into main am: 78a456e771

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2839803

Change-Id: I60df6de321df974fb7277141ca6919ea4abd9f38
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yi Kong 2023-11-22 06:19:00 +00:00 committed by Automerger Merge Worker
commit 817aea043a

View file

@ -150,7 +150,6 @@ func (lto *lto) flags(ctx BaseModuleContext, flags Flags) Flags {
if !ctx.Config().IsEnvFalse("THINLTO_USE_MLGO") {
// Register allocation MLGO flags for ARM64.
if ctx.Arch().ArchType == android.Arm64 {
ltoCFlags = append(ltoCFlags, "-mllvm -regalloc-enable-advisor=release")
ltoLdFlags = append(ltoLdFlags, "-Wl,-mllvm,-regalloc-enable-advisor=release")
}
// Flags for training MLGO model.