Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af6a34b0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Respect THINLTO_USE_MLGO for ML inliner" into main

parents 127714a9 7319cff8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -695,8 +695,10 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps

	if ctx.optimizeForSize() {
		flags.Local.CFlags = append(flags.Local.CFlags, "-Oz")
		if !ctx.Config().IsEnvFalse("THINLTO_USE_MLGO") {
			flags.Local.LdFlags = append(flags.Local.LdFlags, "-Wl,-mllvm,-enable-ml-inliner=release")
		}
	}

	// Exclude directories from manual binder interface allowed list.
	//TODO(b/145621474): Move this check into IInterface.h when clang-tidy no longer uses absolute paths.