From nobody Sat Aug 20 07:32:27 2022 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 4M8r1R5ppvz4ZYWj; Sat, 20 Aug 2022 07:32:27 +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 4M8r1R4gRsz3p9B; Sat, 20 Aug 2022 07:32:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660980747; 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=1Y4BD/a6xI8+AC4t8kCUodVKIIO7Fq5YmSDlCATJqRo=; b=nOIb0+60s4Qs2tRpDrViacPye3pc3q+eJDxqA0TjwBetyr3Y6dXcgd9y7LOCPaKN68GzfO hQ9rpKAJHpqCePCQn7hQdFZJN8wjop0J0/4N5EQ+P/J6eqRR4nWQFzDq46eenBqdUj2D40 O3k/AdcPP4KzckHuC5LjgSb3VA7IZaEm1WILTu8Fv9VE7caPQM5DJPH2l+cnvTEgdXd7fZ QNev3VP6WoVKe/PbQsU43DwT/Rk0VZ36VC/ZYNBe6JBgeKYzzqrfynW9N6EDU4BVVypKCV FAV9ugrOnE8uqYbFuxeaq11K1NtiYnQoxKxzL2xo05m5H+9UYDRITWAxVTnAuA== 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 4M8r1R3ml9zP52; Sat, 20 Aug 2022 07:32:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27K7WRMN048548; Sat, 20 Aug 2022 07:32:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27K7WRkZ048547; Sat, 20 Aug 2022 07:32:27 GMT (envelope-from git) Date: Sat, 20 Aug 2022 07:32:27 GMT Message-Id: <202208200732.27K7WRkZ048547@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Daniel Engberg Subject: git: 5a2f556ccbd7 - main - archivers/zstd: Add LTO option 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: diizzy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5a2f556ccbd7685fb8149f1e63a6f692d057aa4c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660980747; 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=1Y4BD/a6xI8+AC4t8kCUodVKIIO7Fq5YmSDlCATJqRo=; b=s23+TxbgChusrd9lZ2wR0u/MLBIayKx/CO/KXznrdF2H5fg1luwiuj9890nb1UdQyhn7ud nHR9o/6rY0ef+Ukfiwtr4OAHftndFMOc8TJrspfJv5koCu2t/g9im5m47rWE1v4X3lJyxw bE08x41tkxrEUqDpwKmOsbxKF6uIAD6BPR8rYOARc5OW+7+1SG+LZkAPMnzSg6eYR3Z0Ah GHtz7MDfLPG56GqFJmU29P1hIUOIZIpRBjXmRym640aK9cPUzzg7z8oq6G1vTwptke4lpA DLRLNqY5wDiBE2fVCoTCnTrD/+bkET9hyIWyakpJhuAudmzuEV0tLZ5st69UcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660980747; a=rsa-sha256; cv=none; b=IPTm4xa+W6DnGI9aa1f4La2WfJ5pOAAZf4/1nx2MBqASWzAedCEHLOg2eKR6ypGe8Ifgzr t6aLBcbG1JIiaoTKkMwU5iDm1DmkV/4ZsJM+wF6GSQUyoSNwrjKp3WNyJG7poX9E8pusfi e7kBtGc/cmzNhbp65BxFP71HPgS1imRMeLqIix34OM1E7YUtqBv/RHgsOKNODS5bxMpNoo aqbR40bzgGqDxGS8hSJXUIab6je1PF8rtUskiTfUm1FAWcziDXGtEKVUGgOMx68bhuYEUn BPpNwDXO7VjTc4BZEAAXt9NjCxI6nsa5S10RUUK+SZEOQH+9unn0wXi11DIfWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=5a2f556ccbd7685fb8149f1e63a6f692d057aa4c commit 5a2f556ccbd7685fb8149f1e63a6f692d057aa4c Author: Daniel Engberg AuthorDate: 2022-08-20 07:26:39 +0000 Commit: Daniel Engberg CommitDate: 2022-08-20 07:32:11 +0000 archivers/zstd: Add LTO option Add LTO option, this increases performance between 5-15% on my test systems (arm64 and amd64) with optimized cflags (-03) enabled. LTO is also enabled by default on Alpine Linux and OpenMandriva PR: 265605 Approved by: sunpoet (maintainer timeout, 2+ weeks) --- archivers/zstd/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archivers/zstd/Makefile b/archivers/zstd/Makefile index ec45710de745..49255dbd1187 100644 --- a/archivers/zstd/Makefile +++ b/archivers/zstd/Makefile @@ -23,9 +23,10 @@ PLIST_SUB= PORTVERSION=${PORTVERSION} SHEBANG_FILES= *.py -OPTIONS_DEFINE= LZ4 OPTIMIZED_CFLAGS TEST +OPTIONS_DEFINE= LTO LZ4 OPTIMIZED_CFLAGS TEST OPTIONS_DEFAULT=LZ4 +LTO_MESON_TRUE= b_lto LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4 LZ4_MESON_ENABLED= lz4 LZ4_USES= localbase:ldflags