git: 2200a356e4b7 - main - lang/gcc12-devel: disable LTO on armv6/7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 19:43:41 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=2200a356e4b7e83058a1fb48d01326bfe8772909 commit 2200a356e4b7e83058a1fb48d01326bfe8772909 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-04-21 19:40:05 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-04-21 19:40:05 +0000 lang/gcc12-devel: disable LTO on armv6/7 PR: 261977 Requested by: fuz@fuz.su --- lang/gcc12-devel/Makefile | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/lang/gcc12-devel/Makefile b/lang/gcc12-devel/Makefile index 11ff23a9e40e..f814e2948aee 100644 --- a/lang/gcc12-devel/Makefile +++ b/lang/gcc12-devel/Makefile @@ -42,9 +42,17 @@ 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_aarch64=LTO_BOOTSTRAP +OPTIONS_DEFAULT_amd64= LTO_BOOTSTRAP +OPTIONS_DEFAULT_i386= LTO_BOOTSTRAP +OPTIONS_DEFAULT_powerpc=LTO_BOOTSTRAP +OPTIONS_DEFAULT_powerpc64=LTO_BOOTSTRAP +OPTIONS_DEFAULT_powerpc64le=LTO_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 +88,14 @@ TARGLIB32= ${PREFIX}/lib32 # The version information is added later 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