aboutsummaryrefslogtreecommitdiffhomepage
path: root/compileopts
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2022-05-22 22:59:54 +0200
committerRon Evans <[email protected]>2022-05-23 21:24:14 +0200
commit7729a36782ecb1b778384badde69737ff2cdfe05 (patch)
tree0bc587ad100301912356fff5d3ca279f3322a8ef /compileopts
parent5404c81ffd23f890a3a4be3ca614b7c5a4b967d1 (diff)
downloadtinygo-7729a36782ecb1b778384badde69737ff2cdfe05.tar.gz
tinygo-7729a36782ecb1b778384badde69737ff2cdfe05.zip
windows: use ThinLTO
Switch Windows builds to use ThinLTO. This gets us closer to using ThinLTO everywhere.
Diffstat (limited to 'compileopts')
-rw-r--r--compileopts/config.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/compileopts/config.go b/compileopts/config.go
index 045890bb1..a006b673b 100644
--- a/compileopts/config.go
+++ b/compileopts/config.go
@@ -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
}