From nobody Thu Jul 6 22:15:20 2023 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 4QxrSr2CbHz4lHQx for ; Thu, 6 Jul 2023 22:15:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4QxrSr1bQBz4LtW; Thu, 6 Jul 2023 22:15:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688681740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jqlGCxYereUMbQAhS1Fcy4MTHOAPvHzgsDJAcxAfVbU=; b=rDCLZova9lRCo4KBn6ut050vuCvcNiFEII+/Oc2MsZiCVuWeAqkoVyCiBf4q6A6IAjUCiq /L28qrL310B8mFTyhFuj2HgkhZYzK7tLfkfLtd4olH6dnMXjieRfSId8iR7+jsZcq/6gQ4 pus3mp8yssGhmF+ev3Vfk/Y92lLh/Z/ClaQN23324aiS8M3xbZZeYukTb9hwFAdIxVovt5 VcMZMkj5TZQ39L9mgwRRHLHMq7iz4Wn6ymy9sBqXJvBM0IhVmwLCGJr6HQx+pcJRZ1c686 DiT7+CFC6I4koq2Ov+cjDh82KacZBM3NUkuZ1UJsGm9auRMQgoJV+mpeuZcniQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688681740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jqlGCxYereUMbQAhS1Fcy4MTHOAPvHzgsDJAcxAfVbU=; b=drDmcm37NR5qF+WDOAGbrxz136z7HystYntKVvkrgMfvlWMUXBzc8jc2W1K8BnSGGy0/K4 kilbfT1TBSAEotTCDVKRoaH5aBuZ7ZtCHGXziTzuZxOoSGVL8Rwfe1VlVbfa6ikRLidIPa jD5t/Eed9yH4v5OWSKAKbgB625EKOsCfS3bMLEOAaIJddZuntKn3KcJM5WL+5dYU0ci6Zf 4o55QB1T3/SH9eoFX3i/SQ6dchlm1rRe+1GD1NtyY1IcHS8WdKu7dI+89K0oovMIwHzBGt ibxOsanfk5tnsIaQJJPxnluRfhW4OY+w9TDHTrTwzV9Zb1hkhLrZ57QcU96eHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688681740; a=rsa-sha256; cv=none; b=lwHFjPaqhAMuZ+kA7mWJ524CdiJ44nhOlR+LlG8DNtyHYS7DJFesR9GL8x0cr6G/IeksUW 00h5AOhClms/e/ujv3k9vck8yGGq9lXErlXjdW6wi+O82t6oDyTDAgohSNqQzbHZn344yV uKW+sdSNy0KgZ2iG7mrRA6KS5j+7nS3I0NLGey3JEnhcLG17DGzJWqunR1BFLqGcyt+rEh ZReTXnpKClEnuPZK0+aGJB2Hxao2DUgXorGuUcv/oT0RuiTvj3E3/tu1J2wyn+E211qLOO xfk/6ZlFJcJYxYhO2QNpWB0sLYSzlbJ7rgmdld9KnFYDvAIj1Mio8Grd4jxEEw== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QxrSq71fVzP6j; Thu, 6 Jul 2023 22:15:39 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 5140C6CC1C; Fri, 7 Jul 2023 00:15:37 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_5096408D-011D-4D3D-B2A7-B509C764E7A0"; protocol="application/pgp-signature"; micalg=pgp-sha1 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 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: Removing unneeded USES=compiler:c11 (?) From: Dimitry Andric In-Reply-To: Date: Fri, 7 Jul 2023 00:15:20 +0200 Cc: FreeBSD Mailing List Message-Id: <1BB45BF0-8947-4F95-87B8-227BEED2EE07@FreeBSD.org> References: To: Nuno Teixeira X-Mailer: Apple Mail (2.3731.600.7) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_5096408D-011D-4D3D-B2A7-B509C764E7A0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 6 Jul 2023, at 22:41, Nuno Teixeira wrote: >=20 > Could USES=3Dcompiler:c11 be removed from ports presuming that = available compilers support c11? (Do they ?) There are probably older versions of gcc and clang that don't support = C11 yet, but I think all recent versions do. But it couldn't hurt to = leave this in, I guess. This does not automatically mean that -std=3Dc11 is added to the C = compiler command line, for that you have to specify USE_CSTD=3Dc11 in = the port Makefile. > I'm confused because some aws CMakeLists.txt have: >=20 > if(NOT CMAKE_CXX_STANDARD) > set(CMAKE_CXX_STANDARD 11) > endif() >=20 > But c++11 have nothing to do with c11 (for what wikipedia says).... Yes, that is only specifying for some CMake files that if the end-user = does not explicitly specify a C++ standard, it will use C++11. In = practice, this will put -std=3Dc++11 on the C++ compiler = (${CMAKE_CXX_COMPILER}) command line. For ports you can achieve the same result by adding USE_CXXSTD=3Dc++11 = in the port Makefile. -Dimitry --Apple-Mail=_5096408D-011D-4D3D-B2A7-B509C764E7A0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZKc8+AAKCRCwXqMKLiCW oyfoAJ9U2JfNxZHVLtv9KE2uCgiI3v5wpACg/6HDh7NoLCJZCui14TY0yi5lDFM= =TOvp -----END PGP SIGNATURE----- --Apple-Mail=_5096408D-011D-4D3D-B2A7-B509C764E7A0--