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.
Этот коммит содержится в:
Ayke van Laethem 2022-11-04 13:07:20 +01:00 коммит произвёл Ayke
родитель a834359079
коммит 81dbbea1c8

Просмотреть файл

@ -200,7 +200,7 @@ func (c *Config) UseThinLTO() bool {
// wasm-ld doesn't seem to support ThinLTO yet.
return false
}
if parts[0] == "avr" || parts[0] == "xtensa" {
if parts[0] == "avr" {
// These use external (GNU) linkers which might perhaps support ThinLTO
// through a plugin, but it's too much hassle to set up.
return false