From nobody Sat Mar 23 19:37:13 2024 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 4V28bY6Kslz5Fjfk; Sat, 23 Mar 2024 19:37:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V28bY5RsKz4Cl4; Sat, 23 Mar 2024 19:37:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711222633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o2KVbwINsNo5PmU+e7O3RRoJdzUzsSDwzOkCMcuwaxQ=; b=XP7mFUv56I/qIpVKb4bCtcgHXuDjIW3I/886r13s9vTMxWO5N2m2DTIGzIbXBoiF5XEVWi I5aaK9dTYg6EVRdN50MrlN4nLTHA/zOJ7J4a5XmtSjidHrTkuvx7RgaMbIlvtSWi2snfbo IOHZFyhYRmg+X38CJbJNg9VjYh17zJSKxIzumOeoJkmjHc2vzWwuAHBPuDrV/J+3J6VYxp D6Pg9TKAiSQFWVr4JDWt4paeZs7/oojOkbKvtslAOE2d2UOg9pmYYWNS5dZ+Ui+uTH7SGg vF7fnk9PhMYxyXS9YT5ssawq5WU7PeAbQHU5Sk72RLuUNp6KRf+1bJX6MN8N7g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711222633; a=rsa-sha256; cv=none; b=DzHEPqrW6mcANT7fmla5mrSDU3kELaV4eRqQpPZ9eIZw+FPeCwZgoioORVhYI4z1DQYM8k Xs9C5ndKHO9l2u5+CUEHoWUkq8WIUSoNOjhAuu0wnM6Om2YJRyfQN/JeIzIc6IBuxSPLM7 zXKmJld8sq7KNDI4KP4D7Ly/hn8BoM7QZfyjJQDQ5uqkgzLogBL7SHj5Vxoj96MOfXBDO8 vDP9W9Nyx5pptbwGolB2sjrUAQZ95jkxbTPud8BABjUFuNdK4warsP2ghYrwcAWqWwNNfd dvjlnLfazegRGEGx5+7Gf1WOPb5kG8ZtMU88EG8ryzpFsL/8Lk5UgfOg0KhFEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711222633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o2KVbwINsNo5PmU+e7O3RRoJdzUzsSDwzOkCMcuwaxQ=; b=n1FMA0tPPtXnwTtTmYtvElxaLXic967r6kAO7z2wYFX/p46/qIS1QH+lAALlWIkx5OXJei mEbkDXcW1p6bMGonTEVOwqgGhBilAYwmuy+MVfnOEfMNsIb72T39IYBk92d6F0hPDXPdTy MdqBExjNWTP52IWXSIZUUAE3SGrbRwfncF7DLvbjPRGWpjQf4s1aBA78Ng/HntfpZVIYHf BvvBTYTgUZOr7Ngyr4UcB838uqJkowBy7STuThMTVUHYYkXXN75TvJXm5pe52l213yiik3 xAHMCv+BDuw+kklheuaolQT2Z7HCsfefDbale/EcEwUIhcry/EVsIai84NvKyA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V28bY527Pz12Dj; Sat, 23 Mar 2024 19:37:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42NJbDUT078190; Sat, 23 Mar 2024 19:37:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42NJbDZP078187; Sat, 23 Mar 2024 19:37:13 GMT (envelope-from git) Date: Sat, 23 Mar 2024 19:37:13 GMT Message-Id: <202403231937.42NJbDZP078187@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: 3c26c5acf2ce - main - Uses/cargo.mk: Fix enabling LTO 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: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3c26c5acf2ce0ac62aa0ec1b946080867f122563 Auto-Submitted: auto-generated The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=3c26c5acf2ce0ac62aa0ec1b946080867f122563 commit 3c26c5acf2ce0ac62aa0ec1b946080867f122563 Author: Gleb Popov AuthorDate: 2024-03-23 15:13:31 +0000 Commit: Gleb Popov CommitDate: 2024-03-23 19:35:55 +0000 Uses/cargo.mk: Fix enabling LTO PR: 277902 --- Mk/Uses/cargo.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk index 5d423d81661e..e3b733d35821 100644 --- a/Mk/Uses/cargo.mk +++ b/Mk/Uses/cargo.mk @@ -139,8 +139,11 @@ CARGO_ENV+= \ CARGO_ENV+= RUST_BACKTRACE=1 . endif +. if !defined(_WITHOUT_LTO) && (!defined(WITHOUT_LTO_PORTS) || ${WITHOUT_LTO_PORTS:N${PKGORIGIN}}) _CARGO_MSG= "===> Additional optimization to port applied" -WITH_LTO= yes +_WITH_LTO= yes +.undef _WITHOUT_LTO +. endif # Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk . if ${ARCH} == amd64 || ${ARCH} == i386