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.
Этот коммит содержится в:
родитель
a834359079
коммит
81dbbea1c8
1 изменённых файлов: 1 добавлений и 1 удалений
|
@ -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
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче