Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Mar 2017 21:59:07 +0100
From:      Michael Gmelin <freebsd@grem.de>
To:        Yuri <yuri@rawbw.com>
Cc:        "ports@freebsd.org" <ports@freebsd.org>
Subject:   Re: compiler:c++11-lang doesn't ensure c++11?
Message-ID:  <20170318215907.6364e561@bsd64.grem.de>
In-Reply-To: <cd02dae4-ed76-effa-923d-8222d2c68764@rawbw.com>
References:  <cd02dae4-ed76-effa-923d-8222d2c68764@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 18 Mar 2017 09:44:12 -0700
Yuri <yuri@rawbw.com> wrote:

> On the project that requires c++11, USES=compiler:c++11-lang (also 
> compiler:c++11-lib) doesn't make the base c++ compiler (clang-3.8.0)
> to support c++11. Explicitly adding -std=c++11 to CXXFLAGS does make
> it c++11.
> 
> 
> Is this a bug in Uses/compiler.mk that it fails to set the -std=c++11 
> flag for the compiler that doesn't support c++11?
> 
> 

Afaik this is intentional and the point is to depend on a compiler that
can support those features (hence the comments in compiler.mk: "The port
needs a compiler understanding Cxx..."), but setting CXXFLAGS
accordingly is up to the project (through cmake/configure etc.) or the
port.

-m

-- 
Michael Gmelin



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