mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
esp: use ThinLTO for Xtensa
This is now possible because we're using the LLVM linker. It results in some very minor code size reductions. The main benefit however is consistency: eventually, all targets will support ThinLTO at which point we can remove support for GNU linkers and simplify the compiler.
This commit is contained in:
@@ -200,7 +200,7 @@ func (c *Config) UseThinLTO() bool {
|
|||||||
// wasm-ld doesn't seem to support ThinLTO yet.
|
// wasm-ld doesn't seem to support ThinLTO yet.
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if parts[0] == "avr" || parts[0] == "xtensa" {
|
if parts[0] == "avr" {
|
||||||
// These use external (GNU) linkers which might perhaps support ThinLTO
|
// These use external (GNU) linkers which might perhaps support ThinLTO
|
||||||
// through a plugin, but it's too much hassle to set up.
|
// through a plugin, but it's too much hassle to set up.
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user