From nobody Sun Sep 22 05:51:24 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 4XBFcD53x3z5XNRH; Sun, 22 Sep 2024 05:51:24 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XBFcD4cxSz4tQb; Sun, 22 Sep 2024 05:51:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726984284; 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=gvg2d6v/5rcsHx26qdvRO7X2dx+hkWAu0y3MLt6bqgU=; b=Fwtevte5qmIHbYhDbC1e4cy1PbpA1/fg28UfPPYbeBY1ElOa3e86wUIVxV+tA920T225PA lmfH6hz2ZXIya5cK2AWIpTnbjibd4lad+ukkKOHVwoVEdDpTKMlTMDijoRAuaAwU+0xELB ClHyijf05imUAAsixp6qD2m3axeUDuK2bdlbQepOuniaHt6Gg7lWnxVt2GA8zIb2mEqhX/ 3ILKMLMGINBovSo+opNZfr3wceHmFz9ZgEJezscGx8A7B2wcj9myd2aQysnWIymsGghUpr IxnlLRweqpqQX8PLUnYlvF3JnJrqPvMavbDF0N+XESttFuMj4EjfMiWa7UqAxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726984284; a=rsa-sha256; cv=none; b=XLldeJR8xNbGNwtqJzo0PArDoa6fLVGLu9RJHKD8Pf5vHbZ0L+8e/qqI/3F3+IF16LFN+B B2qeqWklJKf1ePNmHdOFF/TDAt5ecpgdT+WdZ7tZ5+4NYO3iVvKKdBpv/RB+Ds5JSq/0Qq KmFj8omtRfAXBMMO6JpDeL7IEXf7LLlja/VF0vFcaKvzbyCX9YBPU5KqLriOJGCQPIO1zW 8DHwAUC3vhaDe5utXlPgA3dgNJfbKxmeX/W3/TRngnoCylPZCz35Rh+Jmvhj01nEMWlftE 320DbgcpIQHXXL7tPNipBBSTpjxO+TcyejWdFLBs6zGs/kRtaEB5C4vxbQoA7A== 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=1726984284; 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=gvg2d6v/5rcsHx26qdvRO7X2dx+hkWAu0y3MLt6bqgU=; b=WbVwusasE+bXzdS+QBWAG/1zxSQIyvv/DNg3okqIolswPfjkCzA/G/wqlO0mmgfUD4WiqF HH2/WfZw9kT4S/n1hvcSaDSC2zHzz7KpO7ZJxGkd3NZc797oLZwyd47v3/HDxxuBtjmwkW 8VgoyWE6B5ObZ9HdSz/4cigLMk8Uu/hb/OgB+oA7JSBNpMtwUpK7lnLCarYk708XoyhhRx K+10xV0nOkKILRrLB28TxJRuIdZkORmi23xl75TL7pSQIf+afYI5RKrrFVEXFSIjf8FStW JA0suVgIkfTqXkBElV31epTdEF0+fYLRgC526aFfjVFTRmIPbmpXpg/2E3Rbig== 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 4XBFcD4DZNz14dq; Sun, 22 Sep 2024 05:51:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48M5pOae022023; Sun, 22 Sep 2024 05:51:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48M5pOc5022020; Sun, 22 Sep 2024 05:51:24 GMT (envelope-from git) Date: Sun, 22 Sep 2024 05:51:24 GMT Message-Id: <202409220551.48M5pOc5022020@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: ac1a74a39b1c - main - Mk/Uses: Add c++23 support 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ac1a74a39b1ce3bffb2c2b41e008fb1d84ecc9b4 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=ac1a74a39b1ce3bffb2c2b41e008fb1d84ecc9b4 commit ac1a74a39b1ce3bffb2c2b41e008fb1d84ecc9b4 Author: Yuri Victorovich AuthorDate: 2024-09-22 03:54:36 +0000 Commit: Yuri Victorovich CommitDate: 2024-09-22 05:51:19 +0000 Mk/Uses: Add c++23 support --- Mk/Uses/compiler.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Mk/Uses/compiler.mk b/Mk/Uses/compiler.mk index 375355cfb838..28103bcf1c83 100644 --- a/Mk/Uses/compiler.mk +++ b/Mk/Uses/compiler.mk @@ -9,6 +9,7 @@ # c++14-lang: The port needs a compiler understanding C++14 # c++17-lang: The port needs a compiler understanding C++17 # c++20-lang: The port needs a compiler understanding C++20 +# c++23-lang: The port needs a compiler understanding C++23 # c++2b-lang: The port needs a compiler understanding C++2b # gcc-c++11-lib:The port needs g++ compiler with a C++11 library # c++11-lib: The port needs a compiler understanding C++11 and with a C++11 ready standard library @@ -36,7 +37,7 @@ _INCLUDE_USES_COMPILER_MK= yes compiler_ARGS= env . endif -VALID_ARGS= c++11-lib c++11-lang c++14-lang c++17-lang c++20-lang \ +VALID_ARGS= c++11-lib c++11-lang c++14-lang c++17-lang c++20-lang c++23-lang \ c++2b-lang c11 c17 features env nestedfct c++0x gcc-c++11-lib _CC_hash:= ${CC:hash} @@ -56,6 +57,8 @@ _COMPILER_ARGS+= features c++14-lang _COMPILER_ARGS+= features c++17-lang . elif ${compiler_ARGS} == c++20-lang _COMPILER_ARGS+= features c++20-lang +. elif ${compiler_ARGS} == c++23-lang +_COMPILER_ARGS+= features c++23-lang . elif ${compiler_ARGS} == c++2b-lang _COMPILER_ARGS+= features c++2b-lang . elif ${compiler_ARGS} == c11 @@ -139,7 +142,7 @@ COMPILER_FEATURES= libstdc++ . endif CSTD= c89 c99 c11 c17 gnu89 gnu99 gnu11 -CXXSTD= c++98 c++0x c++11 c++14 c++17 c++20 c++2b \ +CXXSTD= c++98 c++0x c++11 c++14 c++17 c++20 c++23 c++2b \ gnu++98 gnu++11 gnu++14 gnu++17 gnu++20 gnu++2b . for std in ${CSTD} ${CXXSTD} @@ -171,6 +174,7 @@ CHOSEN_COMPILER_TYPE= gcc . endif . if (${_COMPILER_ARGS:Mc++2b-lang} && !${COMPILER_FEATURES:Mc++2b}) || \ +(${_COMPILER_ARGS:Mc++23-lang} && !${COMPILER_FEATURES:Mc++23}) || \ (${_COMPILER_ARGS:Mc++20-lang} && !${COMPILER_FEATURES:Mc++20}) || \ (${_COMPILER_ARGS:Mc++17-lang} && !${COMPILER_FEATURES:Mc++17}) || \ (${_COMPILER_ARGS:Mc++14-lang} && !${COMPILER_FEATURES:Mc++14}) || \