Remove Use_clang_lld in lto
We have moved all LTO projects to LLD, this is unused.
Test: presubmit
Change-Id: I385b3302c04243be8fde80605b29df7646ec40ce
diff --git a/cc/lto.go b/cc/lto.go
index 581856b..be8fc56 100644
--- a/cc/lto.go
+++ b/cc/lto.go
@@ -56,9 +56,6 @@
ThinDep bool `blueprint:"mutated"`
NoLtoDep bool `blueprint:"mutated"`
- // Use clang lld instead of gnu ld.
- Use_clang_lld *bool
-
// Use -fwhole-program-vtables cflag.
Whole_program_vtables *bool
}
@@ -77,13 +74,6 @@
}
}
-func (lto *lto) useClangLld(ctx BaseModuleContext) bool {
- if lto.Properties.Use_clang_lld != nil {
- return Bool(lto.Properties.Use_clang_lld)
- }
- return true
-}
-
func (lto *lto) flags(ctx BaseModuleContext, flags Flags) Flags {
// TODO(b/131771163): Disable LTO when using explicit fuzzing configurations.
// LTO breaks fuzzer builds.
@@ -112,7 +102,7 @@
flags.Local.CFlags = append(flags.Local.CFlags, "-fwhole-program-vtables")
}
- if (lto.DefaultThinLTO(ctx) || lto.ThinLTO()) && ctx.Config().IsEnvTrue("USE_THINLTO_CACHE") && lto.useClangLld(ctx) {
+ if (lto.DefaultThinLTO(ctx) || lto.ThinLTO()) && ctx.Config().IsEnvTrue("USE_THINLTO_CACHE") {
// Set appropriate ThinLTO cache policy
cacheDirFormat := "-Wl,--thinlto-cache-dir="
cacheDir := android.PathForOutput(ctx, "thinlto-cache").String()