Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2023 22:28:01 +0200
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        "Hurling, Rainer" <rhurlin@FreeBSD.org>
Cc:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org,  dev-commits-ports-main@freebsd.org
Subject:   Re: git: b56d0bc41af7 - main - devel/libcutl: Explain why USE_CXXSTD=c++11 is used
Message-ID:  <cc599520e95986eb6a6ceec6855391c395036b77.camel@FreeBSD.org>
In-Reply-To: <8a1b8efc-9d27-4860-7cfe-30b5514b280d@gwdg.de>
References:  <202307050850.3658oPOA049562@gitrepo.freebsd.org> <CAFDf7UJRc4bd3XVq%2Bb7Za2cLN7h_hkN1mpPTGQiSajV1p9A=0g@mail.gmail.com> <ebcdf01a-2b73-39c3-b6e4-25659e53b1ca@gwdg.de> <e56d377d0985b86be2291b64bb3c686742283dde.camel@FreeBSD.org> <6cf6a5eb00dfac8358dfcb1e1d5b69f293c3e85a.camel@FreeBSD.org> <4701f862-7a0b-afab-48fd-a62b6f5ec308@gwdg.de> <5bd4df5587c773d3e8916fe64d093f2b96e67e24.camel@FreeBSD.org> <8a1b8efc-9d27-4860-7cfe-30b5514b280d@gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2023-07-11 at 20:43 +0200, Rainer Hurling wrote:
> And, this also means that USES=3Dcompiler:C++11-lang provides anything
> gcc=20
> specific? Then it would also be unnecessary to use USE_CXXSTD=3Dgnu++11
> instead of USE_CXXSTD=3Dc++11?
>=20
> Sorry if this should have been clarified already and I just didn't=20
> understand it yet.

Don't worry, the logic in Uses/compiler.mk is confusing to me too :-)

The c++NN vs gnu++NN difference is usually not noticeable as far as I
know so either one works regardless of whether the port is being built
with GCC or Clang.

As for the compiler.mk arguments, my understanding of c++11-lang means
"this port needs a compiler that supports C++11, but not necessarily a
standard library compatible with C++11". The ports infrastructure then
finds a suitable compiler by checking ${CXX} and falling back to some
devel/llvm* port or lang/gcc* depending on architecture and
$FAVORITE_COMPILER. USES=3Dcompiler:c++11-lang does not provide anything
GCC-specific.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cc599520e95986eb6a6ceec6855391c395036b77.camel>