Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2024 18:38:50 GMT
From:      Daniel Engberg <diizzy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a7cf5f2a3a2c - main - lang/python311: Improve build times
Message-ID:  <202406231838.45NIcoh0044586@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a7cf5f2a3a2c8adb21d4cdb5a8ed6dd48a636b5d

commit a7cf5f2a3a2c8adb21d4cdb5a8ed6dd48a636b5d
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-06-23 17:48:15 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-06-23 18:19:18 +0000

    lang/python311: Improve build times
    
    Don't generate debug symbols by default, we discard these anyway and on my
    Tigerlake laptop it reduces build time roughly by 25% with LTO enabled
    Switch from -flto=thin to (fat)lto, there's no parallization so it's
    actually slower and produces slightly larger binaries
    
    PR:             279585
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 lang/python311/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lang/python311/Makefile b/lang/python311/Makefile
index f2b04ef29cc9..c996da90018c 100644
--- a/lang/python311/Makefile
+++ b/lang/python311/Makefile
@@ -28,7 +28,7 @@ SHEBANG_FILES+=	Lib/test/ziptestdata/exe_with_z64 \
 DISABLED_EXTENSIONS=	_sqlite3 _tkinter _gdbm
 CONFIGURE_ARGS+=	--enable-shared --without-ensurepip \
 			--with-system-ffi
-CONFIGURE_ENV+=		OPT="" # Null out OPT to respect user CFLAGS and remove optimizations
+CONFIGURE_ENV+=		OPT="" ac_cv_prog_cc_g=false # Null out OPT to respect user CFLAGS and remove optimizations
 
 INSTALL_TARGET=		altinstall						# Don't want cloberring of unprefixed files
 
@@ -68,7 +68,7 @@ IPV6_CONFIGURE_ENABLE=	ipv6
 LIBMPDEC_CONFIGURE_ON=	--with-system-libmpdec
 LIBMPDEC_LIB_DEPENDS=	libmpdec.so:math/mpdecimal
 
-LTO_CONFIGURE_ON=	--with-lto=thin
+LTO_CONFIGURE_ON=	--with-lto
 
 # Use CPPFLAGS over CFLAGS due to -I ordering, causing elementtree and pyexpat
 # to break in Python 2.7, or preprocessor complaints in Python >= 3.3



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406231838.45NIcoh0044586>