From nobody Sat Mar 23 15:05:16 2024 X-Original-To: ports-bugs@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 4V22Yn055Lz5FC5q for ; Sat, 23 Mar 2024 15:05:17 +0000 (UTC) (envelope-from bugzilla-noreply@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 4V22Ym56Y7z4FQc for ; Sat, 23 Mar 2024 15:05:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711206316; a=rsa-sha256; cv=none; b=r48lkReQnT6qeQvsDRdK1lB6WE4kqwNctUvEgkFXRao457f6IeIxwUw8jgyPEdnL5viG7r 7tZm70Sy4jZNBU/8vASLfqCt4/RDeSNg52SEjrMfFYGvDwobDJKs9gNXsiQoSBkWjEl3G2 Q6J8CJVfSghN5g3hMDByhwNL7FAgBig/7D7ue1Kg4WpIKF8dARrTu7iNDYOdXilZffRhWu 4+MD2YrkFghRrb8NmqHIDl0H0NnTem6Uzl9s3bz6GE2V7j90DIQxDW70KY+fyVYU6RzutD Vx1x/M+5YA5MGdoERTXulZQG9mYt+NbupW4ge+l78OymtaTPfWLW3XQJpvF8CA== 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=1711206316; 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: in-reply-to:in-reply-to:references:references; bh=Wn5HF77PJI4rEDGvGTu+pCwjGI3qu7PZ6R1r0H77zr8=; b=KCtoMKK0KTWwIZDvTGVa5jGdLNWL/lO3uYTfhvyX3qQYOKtzTNuknhShGZ0xlzrYIDCk1D vy+ySa4d4oB8+A7uoXME6WV4vgwvWUYOZZgkIA6JK/KWcaee/54wc4ngiCQo9ize4ah1y/ 9p7dK+ccyDjKFgfd8uIfsu8PMa0sARk5TwlM8wRX8K+fNk/7Qp6uQPAqF3h6e11W4jmY3H SroWdUmkH1KDtEZaPntwNCx3kOc6jfn+VOZkbV14Df0QgiTxcPx6xPW9fYqw/HXw+0uE/H KF0J3zizwcFXkaG9K8jUOxA56jt/FUs4yJ32YbfEH63B1tZOvRU2IJNrnhM3VQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4V22Ym4PBPzt9s for ; Sat, 23 Mar 2024 15:05:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42NF5Gpx070590 for ; Sat, 23 Mar 2024 15:05:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42NF5GxM070584 for ports-bugs@FreeBSD.org; Sat, 23 Mar 2024 15:05:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 277902] Mk/Uses/cargo.mk: WITH_LTO no longer applies Date: Sat, 23 Mar 2024 15:05:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: arrowd@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: arrowd@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277902 --- Comment #7 from Gleb Popov --- Proposed fix's below. It now adhere to WITHOUT_LTO_PORTS too. 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+=3D \ CARGO_ENV+=3D RUST_BACKTRACE=3D1 . endif +. if !defined(_WITHOUT_LTO) && (!defined(WITHOUT_LTO_PORTS) || ${WITHOUT_LTO_PORTS:N${PKGORIGIN}}) _CARGO_MSG=3D "=3D=3D=3D> Additional optimization to port applied" -WITH_LTO=3D yes +_WITH_LTO=3D yes +.undef _WITHOUT_LTO +. endif # Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk . if ${ARCH} =3D=3D amd64 || ${ARCH} =3D=3D i386 --=20 You are receiving this mail because: You are on the CC list for the bug.=