From nobody Sun Jul 16 15:19:40 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R3pmH50xBz4mrpR; Sun, 16 Jul 2023 15:19:43 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Received: from mail.anongoth.pl (mail.anongoth.pl [46.248.190.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X448 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "anongoth.pl", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R3pmH3Nqfz4NYj; Sun, 16 Jul 2023 15:19:43 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Authentication-Results: mx1.freebsd.org; none Received: from anongoth.pl (unknown [192.168.1.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: pkubaj@anongoth.pl) by mail.anongoth.pl (Postfix) with ESMTPSA id 3019716ADC5; Sun, 16 Jul 2023 17:19:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=anongoth.pl; s=ANONGOTH; t=1689520781; bh=GkGXCSCzDTcELLOrbvePqKfpF87A0EtST3j3t0Xgv7g=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=BQClq7nwKLQp8z6sodiCB4aBgvMr2vy7yANiZn27KkbN+v8VGIuOc98ApA6D3hU11 jn9sMD/CnGDqbKXlUyEhgQpno1TD2bxrhQ7vx68J0O/466Olx0vl7wL4Wjpa9gbnRs AQMA1W59Pbo0HTWGG9Hx4Uu5gnbTeKP1s3+ZrzlaBHVQ618V74mtY2Qh6Ij41vsThb wWlDlI8wXVDDMaZS6FWki4E8NcvhZ9Ih03j3fSTqncYub1Pf89bGol010ctQSXay4W MLeKpwv279lhbtVHvAFpX8yODr31gcSUGtWy1gmj2CTbIp+kEQV8Ebu2xMV32AkGuj m+5B5lUrRZ6KA== Date: Sun, 16 Jul 2023 17:19:40 +0200 From: Piotr Kubaj To: Nuno Teixeira Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: bf0af791ab80 - main - lang/rust: add LTO option Message-ID: References: <202307161059.36GAx0v1016085@gitrepo.freebsd.org> List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iwadguA7dQSc+d3r" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4R3pmH3Nqfz4NYj X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:47544, ipnet:46.248.160.0/19, country:PL] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --iwadguA7dQSc+d3r Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I don't have any numbers, just tried to build rust and saw it seems to work fine. As for plans to switch it by default, I think it should be talked first with other rust@ committers. On 23-07-16 14:29:00, Nuno Teixeira wrote: > Hello Piotr, >=20 > Very curious to see the effect of rust with lto compiling ports need it, > memory, cpu speed, etc. >=20 > Since LTO is on by default on ports using cargo, is there any plans to tu= rn > LTO on on rust himself? >=20 > Cheers, >=20 > Piotr Kubaj escreveu no dia domingo, 16/07/2023 =C3= =A0(s) > 11:59: >=20 > > The branch main has been updated by pkubaj: > > > > URL: > > https://cgit.FreeBSD.org/ports/commit/?id=3Dbf0af791ab80f4f109bfecf4a95= 4bcf94f00947d > > > > commit bf0af791ab80f4f109bfecf4a954bcf94f00947d > > Author: Piotr Kubaj > > AuthorDate: 2023-07-16 10:57:56 +0000 > > Commit: Piotr Kubaj > > CommitDate: 2023-07-16 10:58:20 +0000 > > > > lang/rust: add LTO option > > --- > > lang/rust/Makefile | 8 +++++++- > > 1 file changed, 7 insertions(+), 1 deletion(-) > > > > diff --git a/lang/rust/Makefile b/lang/rust/Makefile > > index 184c0768b95f..71d8416d34b8 100644 > > --- a/lang/rust/Makefile > > +++ b/lang/rust/Makefile > > @@ -48,7 +48,7 @@ CONFLICTS_INSTALL?=3D rust-nightly > > # ?=3D to allow users to still overwrite it in make.conf. > > TMPDIR?=3D ${WRKDIR} > > > > -OPTIONS_DEFINE=3D DOCS GDB SOURCES WASM > > +OPTIONS_DEFINE=3D DOCS GDB LTO SOURCES WASM > > OPTIONS_DEFAULT=3D SOURCES WASM > > > > GDB_DESC=3D Install ports gdb (necessary for debugging rust progr= ams) > > @@ -191,7 +191,13 @@ do-configure: > > @${ECHO_CMD} 'deny-warnings=3Dfalse' >> ${WRKSRC}/config.toml > > @${ECHO_CMD} 'verbose-tests=3Dtrue' >> ${WRKSRC}/config.toml > > @${ECHO_CMD} 'lld=3D${_RUST_BUILD_WASM}' >> ${WRKSRC}/config.to= ml > > +.if ${PORT_OPTIONS:MLTO} > > + @${ECHO_CMD} 'lto=3D"thin"' >> ${WRKSRC}/config.toml > > +.endif > > @${ECHO_CMD} '[llvm]' >> ${WRKSRC}/config.toml > > +.if ${PORT_OPTIONS:MLTO} > > + @${ECHO_CMD} 'thin-lto=3Dtrue' >> ${WRKSRC}/config.toml > > +.endif > > .if defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE) > > @${ECHO_CMD} 'ccache=3D"${CCACHE_BIN}"' >> ${WRKSRC}/config.toml > > .else > > >=20 >=20 > --=20 > Nuno Teixeira > FreeBSD Committer (ports) --iwadguA7dQSc+d3r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIyBAABCAAdFiEEycyIeNkkgohzsoorelmbhSCDnJ0FAmS0CowACgkQelmbhSCD nJ3zAQ/0DH2yCL0fuvQIDbd2nGdRcRIKA6HHy+dJV2oU8xFo+6crg1E0v4uZxdx0 QD7IFkcscKNeFmMVGi9Ejg2jeCDlYWigp4oI8nF10yJjHn2HWfnCfZbVvw73Lx+d q5MLZhgLAlgHLfardEm/dkVCZEiqBxGPytFAq2wzX45cUSKIkX6MocBRM/K4jZO2 4lV77vgBVazi5JDZBkihYc200GhjpI/2xKRbQq3QeAKPqRemFCu6mmBqdk59CCDS mEJFSe9bZoFR6Dm8ELJ4qww/Gf8mRAXi3t3AK8XVIARg4GWY+z5WrQtRuvXXRRT4 qT3diJu6sBzLHqZ1uMDxEstLr+N2anKYL1vTHOEdsFR8jNUr7zzbSu2aqyVn5HCD m4Vwj5ReBeyWEqWj9jy0MlLFNABlt8Ee+Fxn1U6EuUmlWlyPTFPuEl4WSLiKxiH/ ayu7J9+eTzp+G1Z6tW4cvWhKxLrNK/z6R7IO1cUWcCTBgdV5tUKnyTlqtcm9aJgW ZgGbfWJkZninqgI057WmD4xI7ujOFLog4HBTxmFJ1/akuu/LrgvcUS4HH2U7tRsb 2ZeDCXq0JLPdVhC5U5bOMwl4Qn59UbACNxCcsz3JD3zfdqcHy7jBiifMPVqiAd3h 3XR6n8+pRBzKU5p0jL2CUbZKMydVDV+rWHbKelT1ej+L8Lk2Tg== =SkVO -----END PGP SIGNATURE----- --iwadguA7dQSc+d3r--