diff options
author | 2025-01-30 21:27:43 -0800 | |
---|---|---|
committer | 2025-01-30 21:27:43 -0800 | |
commit | 8057bac878c4f15923fab22db11d60bd82596145 (patch) | |
tree | 3cda6ce60e247eb5b6a597b976397dff13db27fb /rust/compiler.go | |
parent | 6f015144693e101f0b1d13d84062f73210cda4da (diff) | |
parent | 3983413f13bc0c1a4d410425ca63e693cdc78bd9 (diff) |
Merge "Revert "Do not perform LTO for Rust binaries during eng builds"" into main
Diffstat (limited to 'rust/compiler.go')
-rw-r--r-- | rust/compiler.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/rust/compiler.go b/rust/compiler.go index 62e53bf6e..f186ef38f 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -477,11 +477,6 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags) Flag } } - // Enable LTO for non-engineering builds if the module supports and requests it. - if !ctx.Config().Eng() && !(ctx.RustModule().Rlib() || ctx.RustModule().ProcMacro()) && ctx.RustModule().compiler.Thinlto() { - flags.GlobalRustFlags = append(flags.GlobalRustFlags, "-C lto=thin") - } - flags.RustFlags = append(flags.RustFlags, lintFlags) flags.RustFlags = append(flags.RustFlags, compiler.Properties.Flags...) flags.RustFlags = append(flags.RustFlags, "--edition="+compiler.edition()) |