From nobody Sat Feb 04 23:28:56 2023 X-Original-To: dev-commits-ports-all@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 4P8THX6xm3z3kXdK; Sat, 4 Feb 2023 23:28:56 +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 4P8THX6Qvnz40w9; Sat, 4 Feb 2023 23:28:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675553336; 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=WM2K5lbN+ZpGYgA8B5sof1mKNsliDkoYRHzXERNLcg8=; b=JHbELCq3zIpFA1cpf95kZvBtfgGuvm7oYaNpJfd2ug1blNSC8L8k/PhjO86e0cqJ79qkKg +VZbtm5AbNLNJgKFpgkqwZ1hpR3Kxqz37M90CFCxlUW2phoyRdwreyek7yh22wchg0PEbc j9zRf+UXW1XBypYLf9SL69JVv2mha5yCvfUkHCCeH/svEA/p1pgMyGytOQFA9dyGqnID4I r/GrkuB/QB/eGOpZI+i8VnUEruJ1GQGVaV7lq6qnvXhmJjBCYch/nGjwZ1aKXzmRdnBlW6 qPZS9eIyPUEbIkJggKknKeSqtMe5BxoYAfHmXUqk4zLSowReR9qJ2uBnV2GJ5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675553336; 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=WM2K5lbN+ZpGYgA8B5sof1mKNsliDkoYRHzXERNLcg8=; b=hmD2LmaXTNa2GIZQF+po2bGm8+BdAnXS66f9MvDcaLosgaFDnAOn9RKbL2ZDtbJ1+mMAN8 o2nEOaG5LNasUOc6Qd81muc4ydv8m1WrVy5BCyDl6CTiAbz3fLEi2gzsk3sp4qTU5S3fzo M4w4wT6BXNknnhYwf+vZFgP+KMzvE+kYFgU5GfF7NJV6opbblb2MZfvm0PjJse0Sw2MtAN V8bFSgZE7aQjpp/r+VH0+d8Xigg+kL3ZlLjambvzWTgRj+7B9/GQFWwTSX4nORy8nI9vwC 1FiD5Iwz6Uu8eiQelnHfNkkO7pBdxD2bbZmEi7hIjGeisi35pUU8+0M+dz6+Sw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675553336; a=rsa-sha256; cv=none; b=w5PIQgsxAUsR9mPG/avGbqmu5ZyZGEkXlYnKIEl/itgG5A3Adi6gUoFapRcqejzlSD40nR dsw0miuZ2Lh5T2ca8GFZ1lzzeq2N6UVDKI/lgHpd65wVEorPGDmDH0i9bqE0lV5RKWFGKr 0NnctPV56iYKwWNU/MPlAoSUwfZpr7e2m6yh2qg2Wq+drJmwkbDSHBcGDWFcrE3xYQ8qTF HHI1EHmgsOiJWDhqmhykyUDnlZMqNMP0SRUQgdDYGySM7/EVdTZ353q+XLs950runBKUHD 6Z9eUWaaTXUSARk1xdlaCF5TabT3npDlxEhulqw9+9HyDr3JmqRQEcHPI5h3dg== 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 4P8THX5TYkzYQj; Sat, 4 Feb 2023 23:28:56 +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 314NSupL018263; Sat, 4 Feb 2023 23:28:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 314NSukx018262; Sat, 4 Feb 2023 23:28:56 GMT (envelope-from git) Date: Sat, 4 Feb 2023 23:28:56 GMT Message-Id: <202302042328.314NSukx018262@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dave Cottlehuber Subject: git: 7efc3219b149 - main - lang/zig: build for lowest common denominator CPU List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dch X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7efc3219b1495d2e44ed68bd9edd8d84632267bd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dch: URL: https://cgit.FreeBSD.org/ports/commit/?id=7efc3219b1495d2e44ed68bd9edd8d84632267bd commit 7efc3219b1495d2e44ed68bd9edd8d84632267bd Author: Dave Cottlehuber AuthorDate: 2023-02-04 23:28:53 +0000 Commit: Dave Cottlehuber CommitDate: 2023-02-04 23:28:53 +0000 lang/zig: build for lowest common denominator CPU Systems that don't have AVX2 or newer CPU instructions will SIGILL. This seems particularly cruel for a language with the moniker "Gotta Go Fast". PR: 269206 Differential Revision: https://reviews.freebsd.org/D38284 Reported by: Yonas Yanfa Tested by: Oleh Vinichenko --- lang/zig/Makefile | 3 ++- lang/zig/files/patch-CMakeLists.txt | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lang/zig/Makefile b/lang/zig/Makefile index c270f4f62530..0b72faae67d6 100644 --- a/lang/zig/Makefile +++ b/lang/zig/Makefile @@ -1,6 +1,6 @@ PORTNAME= zig DISTVERSION= 0.10.1 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= lang MASTER_SITES= https://ziglang.org/download/${DISTVERSION}/ \ https://ziglang.org/builds/ @@ -28,6 +28,7 @@ LIB_DEPENDS= liblzma.so:archivers/lzma \ USES= cmake compiler:c++11-lang localbase:ldflags tar:xz CMAKE_ON= THREADS_PREFER_PTHREAD_FLAG +CMAKE_ARGS+= -DZIG_TARGET_MCPU=baseline # ensure we run everywhere OPTIONS_DEFINE= DOCS STATIC OPTIONS_DEFAULT= DOCS diff --git a/lang/zig/files/patch-CMakeLists.txt b/lang/zig/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..fbad7bb9df60 --- /dev/null +++ b/lang/zig/files/patch-CMakeLists.txt @@ -0,0 +1,10 @@ +--- CMakeLists.txt.orig 2023-01-31 09:51:54 UTC ++++ CMakeLists.txt +@@ -1089,6 +1089,7 @@ set(ZIG_BUILD_ARGS + "-Dtarget=${ZIG_TARGET_TRIPLE}" + "-Dcpu=${ZIG_TARGET_MCPU}" + "-Dversion-string=${ZIG_VERSION}" ++ "--verbose" + ) + + add_custom_target(stage3 ALL