[Bug 261977] lang/gcc12-devel: enable LTO
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 261977] lang/gcc12-devel: enable LTO"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Apr 2022 06:12:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261977 --- Comment #42 from Piotr Kubaj <pkubaj@FreeBSD.org> --- Would that be good for you? --- lang/gcc12-devel/Makefile +++ lang/gcc12-devel/Makefile @@ -42,9 +42,16 @@ SUFFIX= ${PORTVERSION:C/([0-9]+).*/\1/} CFLAGS:= ${CFLAGS:N-mretpoline} CXXFLAGS:= ${CXXFLAGS:N-mretpoline} -OPTIONS_DEFINE= BOOTSTRAP GRAPHITE -OPTIONS_DEFAULT= BOOTSTRAP -BOOTSTRAP_DESC= Build using a full bootstrap +OPTIONS_DEFINE= GRAPHITE +OPTIONS_DEFAULT= LTO_BOOTSTRAP +OPTIONS_EXCLUDE_armv6= LTO_BOOTSTRAP +OPTIONS_EXCLUDE_armv7= LTO_BOOTSTRAP +OPTIONS_DEFAULT_armv6= STANDARD_BOOTSTRAP +OPTIONS_DEFAULT_armv7= STANDARD_BOOTSTRAP +OPTIONS_RADIO= BOOTSTRAP +OPTIONS_RADIO_BOOTSTRAP= LTO_BOOTSTRAP STANDARD_BOOTSTRAP +LTO_BOOTSTRAP_DESC= Build using a full LTO bootstrap +STANDARD_BOOTSTRAP_DESC= Build using a full bootstrap without LTO GRAPHITE_DESC= Support for Graphite loop optimizations .if exists(/usr/lib32/libc.so) @@ -80,11 +87,14 @@ TARGLIB32= ${PREFIX}/lib32 # The version information i LIBEXEC= ${PREFIX}/libexec/gcc${SUFFIX} GNU_CONFIGURE= yes CONFIGURE_OUTSOURCE= yes -.if empty(PORT_OPTIONS:MBOOTSTRAP) +.if empty(PORT_OPTIONS:M*BOOTSTRAP) CONFIGURE_ARGS+=--disable-bootstrap -.else +.elif ${PORT_OPTIONS:MLTO_BOOTSTRAP} CONFIGURE_ARGS+=--with-build-config=bootstrap-lto-noplugin ALL_TARGET= bootstrap-lean +.else +CONFIGURE_ARGS+=--with-build-config=bootstrap-debug +ALL_TARGET= bootstrap-lean .endif INSTALL_TARGET= install-strip .if ${UID} != 0 -- You are receiving this mail because: You are on the CC list for the bug.