windows: use ThinLTO

Switch Windows builds to use ThinLTO. This gets us closer to using
ThinLTO everywhere.
This commit is contained in:
Ayke van Laethem
2022-05-22 22:59:54 +02:00
committed by Ron Evans
parent 5404c81ffd
commit 7729a36782
2 changed files with 14 additions and 11 deletions
-5
View File
@@ -192,11 +192,6 @@ func (c *Config) UseThinLTO() bool {
// through a plugin, but it's too much hassle to set up.
return false
}
if len(parts) >= 2 && parts[2] == "windows" {
// Linker error (undefined runtime.trackedGlobalsBitmap) when linking
// for Windows. Disable it for now until that's figured out and fixed.
return false
}
// Other architectures support ThinLTO.
return true
}