From nobody Sun Jul 31 12:07:17 2022 X-Original-To: freebsd-ports@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 4Lwg4329JLz4Y8tL for ; Sun, 31 Jul 2022 12:07:31 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lwg431gWLz3Zbw for ; Sun, 31 Jul 2022 12:07:31 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659269251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Okf0/PXkzekB+tioLLfE9vRIMuI1l7/6+HL80TxShkg=; b=aqdwXpX90wedWDFEXixkU8Q92ibkd8M6jtXZS1S88jPfjp+hwWm3uZh9WUSPw1HX56GhmA qNZTh2b5ofVaWldzegjfGvJ6f/08MWbBZY+UgACO6Fw0GVjIa3E6dglXx8rIy6jR9UHAcq E8h9+j/hJJ2LL+/mRl/9uNtBSb+TU/dl/AYj9FbAybK2N2W6AtvjNYxqqLixntPSlvDpEl q7X5iMWsSfYkML4qrw8VrkcOEIY4VRfpsqEohoibZCmyOaz87s4nxfFf1xoRS1NZkrZWzd EGtJjtf4ITa0fPfRhA1KYCQKHpAZ50XOqkP9gEEUr2K1LNJaXEMY2jlUllw1Jg== Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Lwg430YZTzZT4 for ; Sun, 31 Jul 2022 12:07:31 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-ua1-f44.google.com with SMTP id b4so2200829uaw.11 for ; Sun, 31 Jul 2022 05:07:31 -0700 (PDT) X-Gm-Message-State: ACgBeo0q8p1T13MM6lOTmAISZ3FeigjKYPdjFe1JNzz3+7ElNVgpXAuY itKvZm/BqCER8gKbapljxwd/ltvHxPr8mxtqJxc= X-Google-Smtp-Source: AA6agR6T7PSzLHLqGglDQl07oNy0aTieHmDNQliL2WIwGKzQ96zpubqjZ5eBNfays5oaO0kdvRn0CtJMG7kuMPajpWI= X-Received: by 2002:ab0:300b:0:b0:381:f97a:eb24 with SMTP id f11-20020ab0300b000000b00381f97aeb24mr4594667ual.13.1659269250481; Sun, 31 Jul 2022 05:07:30 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: <20220731071753.cqg4wkclcpqzpatk@nexus.home.palmen-it.de> In-Reply-To: <20220731071753.cqg4wkclcpqzpatk@nexus.home.palmen-it.de> From: Nuno Teixeira Date: Sun, 31 Jul 2022 13:07:17 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: cmake cxx standard and USES compiler:c++{17,14,11}-lang To: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="00000000000043053a05e518ba88" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659269251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Okf0/PXkzekB+tioLLfE9vRIMuI1l7/6+HL80TxShkg=; b=wsDJKoP3CN1LOUnbPoSssV9xnXvPd2e+lBYOXVR47e0uUxYxE1L/uJrSwinCxEV3JN3s6b mrwdVUEyFnnJm/L7Ys7BukFctOptjFSRNsKWJxaZIBm4HVhGLAACyBlzJYWlLd/p+7oDs6 ZWi51cZNe0ILb1x0J4DTsmN/ktn25OTzqrBgqDsc+ZKHvWAAfqFU1C7Gc7ZN0f6jRb1+bm P4jlTK214rQfue9P6vW1E5Ze1zCRUgzcaofSZL6CZAuv1lJ+D65G6ZmzGAe9XVnf+Jh+vt 7BUL2rih1bZ5A4p/NM5QAFeGYAveBV0dtQohUtsKCgGuy0/kyvll3X7Yy3DFfg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659269251; a=rsa-sha256; cv=none; b=Vg5tjuL3sUG/Ho6cQFxRbehZS9ZFS+xOjujp8ncIAczj+7EkQh565Bs8IFS0UnExf3Qpne pxkWttVtK+PG9Kbx2t1fDbbKdfEBYALSu6tblhXBDac3+1JwuE7PAsSQKDepEpQYs0WYOo 5cL0F3ZEB96zp6QmKV+QUGpGlSC7cEafzsqxnrWzudTmk0FJNGtaFadTGR2trk3cQV9ssP VZucKRqfd2r3udHmNJt56GXBVAELNJI9Y4eJbaDZW6QF1sUtzSb4VqsxoIXI82icHTtycp miKBGfB6eE25yzv2ZtO+yg0ADye3+lmDEdmQsvFgvTjNa3/QmxoiimGtuAtEag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --00000000000043053a05e518ba88 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Felix, Thanks for your explanation. Cheers Felix Palmen escreveu no dia domingo, 31/07/2022 =C3= =A0(s) 08:18: > Hello Nuno, > > * Nuno Teixeira [20220730 22:00]: > > I'm working on a port that have wrksrc CMakeLists.txt: > > --- > > set(CMAKE_CXX_STANDARD 17) > > set(CMAKE_CXX_STANDARD_REQUIRED ON) > > --- > > but port Makefile have: > > --- > > USES=3D cmake compiler:c++14-lang > > --- > > > > Should I change it to compiler:c++17-lang? > > Most likely yes. > > > Do USES=3D compiler have any influence on cmake building? > > Currently not in practice. It will just pull in a compiler from ports > *if* the base compiler doesn't offer the standard required, but as far > as I know, a base compiler supporting c++14 will also support c++17 (and > after EOL of 12, there won't be any base compilers left not supporting > these standards). > > I have a review open trying to add c++20 and c++2b *and* to honor > LLVM_DEFAULT in case it will pull in llvm here: > > > BR, Felix > > -- > Dipl.-Inform. Felix Palmen ,.//.......... > {web} http://palmen-it.de {jabber} [see email] ,//palmen-it.de > {pgp public key} http://palmen-it.de/pub.txt // """"""""""" > {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A > --00000000000043053a05e518ba88 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Felix,

Thanks for your ex= planation.

Cheers

Felix Palmen <felix@palmen-it.de> escreveu no dia = domingo, 31/07/2022 =C3=A0(s) 08:18:
Hello Nuno,

* Nuno Teixeira <eduardo@freebsd.org> [20220730 22:00]:
> I'm working on a port that have wrksrc CMakeLists.txt:
> ---
> set(CMAKE_CXX_STANDARD 17)
> set(CMAKE_CXX_STANDARD_REQUIRED ON)
> ---
> but port Makefile have:
> ---
> USES=3D cmake compiler:c++14-lang
> ---
>
> Should I change it to compiler:c++17-lang?

Most likely yes.

> Do USES=3D compiler have any influence on cmake building?

Currently not in practice. It will just pull in a compiler from ports
*if* the base compiler doesn't offer the standard required, but as far<= br> as I know, a base compiler supporting c++14 will also support c++17 (and after EOL of 12, there won't be any base compilers left not supporting<= br> these standards).

I have a review open trying to add c++20 and c++2b *and* to honor
LLVM_DEFAULT in case it will pull in llvm here:
<https://reviews.freebsd.org/D35889>

BR, Felix

--
=C2=A0Dipl.-Inform. Felix Palmen=C2=A0 <felix@palmen-it.de>=C2=A0 =C2=A0,.//........= ..
=C2=A0{web}=C2=A0 http://palmen-it.de=C2=A0 {jabber} [see email]=C2=A0 =C2=A0= ,//pal= men-it.de
=C2=A0{pgp public key}=C2=A0 =C2=A0 =C2=A0http://palmen-it.de/pub.txt= =C2=A0 =C2=A0//=C2=A0 =C2=A0""""""""= ;"""
=C2=A0{pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A
--00000000000043053a05e518ba88--