darwin: add support for ThinLTO

This commit is contained in:
Ayke van Laethem
2022-05-22 15:29:47 +02:00
committed by Ron Evans
parent c23a5b65ef
commit 046070074d
2 changed files with 9 additions and 8 deletions
-4
View File
@@ -192,10 +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 && strings.HasPrefix(parts[2], "macos") {
// We use an external linker here at the moment.
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.