Date: Sun, 11 Feb 2024 11:49:55 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 1b286170da8f - main - Mk/Features/lto.mk: explicitly disable LTO for Rust when LTO_UNSAFE Message-ID: <202402111149.41BBntNR085754@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=1b286170da8fb1e7d8d336fadd66100f721c7358 commit 1b286170da8fb1e7d8d336fadd66100f721c7358 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-02-09 15:29:05 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-02-11 11:48:55 +0000 Mk/Features/lto.mk: explicitly disable LTO for Rust when LTO_UNSAFE Some ports enable LTO in Cargo.toml and need -C lto=no being passed to disable it. --- Mk/Features/lto.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mk/Features/lto.mk b/Mk/Features/lto.mk index d8db2da3d028..3fef5a223e9c 100644 --- a/Mk/Features/lto.mk +++ b/Mk/Features/lto.mk @@ -27,5 +27,9 @@ LTO_Include_MAINTAINER= pkubaj@FreeBSD.org CXXFLAGS+= ${LTO_FLAGS} LDFLAGS+= ${LTO_FLAGS} . endif +. else +. if defined(_INCLUDE_USES_CARGO_MK) + RUSTFLAGS+= -C lto=no +. endif . endif .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402111149.41BBntNR085754>