diff mbox series

Filter out LTO in config/bootstrap-lto-lean.mk.

Message ID 61b1e035-85a8-1233-7b39-e76f24e2fa86@suse.cz
State New
Headers show
Series Filter out LTO in config/bootstrap-lto-lean.mk. | expand

Commit Message

Martin Liška April 15, 2019, 7:50 a.m. UTC
Hi.

The patch is fixing bootstrap-lto-lean.mk where with PGO LTO was
wrongly used in STAGEtrain.

Tested on openSUSE gcc9 package, I'm attaching build log:
https://drive.google.com/file/d/17sxGf_x_VaUekPk2SHI9joIXg1BR5-dY/view?usp=sharing

Ready to be installed?
Thanks,
Martin

config/ChangeLog:

2019-04-15  Martin Liska  <mliska@suse.cz>

	* bootstrap-lto-lean.mk: Filter out -flto in STAGEtrain_CFLAGS.
---
 config/bootstrap-lto-lean.mk | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/config/bootstrap-lto-lean.mk b/config/bootstrap-lto-lean.mk
index ee36f6fe544..79cea50a4c6 100644
--- a/config/bootstrap-lto-lean.mk
+++ b/config/bootstrap-lto-lean.mk
@@ -2,6 +2,7 @@ 
 # Otherwise, LTO is used in only stage3.
 
 STAGE3_CFLAGS += -flto=jobserver
+override STAGEtrain_CFLAGS := $(filter-out -flto=jobserver,$(STAGEtrain_CFLAGS))
 STAGEtrain_GENERATOR_CFLAGS += -flto=jobserver
 STAGEfeedback_CFLAGS += -flto=jobserver