Re: git: b56d0bc41af7 - main - devel/libcutl: Explain why USE_CXXSTD=c++11 is used

From: Raphael Kubo da Costa <rakuco_at_FreeBSD.org>
Date: Wed, 12 Jul 2023 20:28:01 UTC
On Tue, 2023-07-11 at 20:43 +0200, Rainer Hurling wrote:
> And, this also means that USES=compiler:C++11-lang provides anything
> gcc 
> specific? Then it would also be unnecessary to use USE_CXXSTD=gnu++11
> instead of USE_CXXSTD=c++11?
> 
> Sorry if this should have been clarified already and I just didn't 
> 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=compiler:c++11-lang does not provide anything
GCC-specific.