Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Feb 2023 02:56:59 +0000
From:      Alexey Dokuchaev <danfe@freebsd.org>
To:        Jan Beich <jbeich@freebsd.org>
Cc:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org
Subject:   Re: git: 84ba2383e7be - main - games/openenroth: unbreak the port's build in pre-C++20 environments
Message-ID:  <Y98a%2B3nFGOVgGbGu@FreeBSD.org>
In-Reply-To: <v8kh-4g0d-wny@FreeBSD.org>
References:  <202302041511.314FBD0R014553@gitrepo.freebsd.org> <v8kh-4g0d-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 04, 2023 at 04:17:06PM +0100, Jan Beich wrote:
> Alexey Dokuchaev <danfe@FreeBSD.org> writes:
> ...
> > +.if !exists(/usr/include/c++/v1/concepts)
> > +BUILD_DEPENDS+=	${LOCALBASE}/include/boost/unordered_map.hpp:devel/boost-libs
> > +USES+=		llvm:13
> > +CXX=		${LLVM_PREFIX}/bin/clang++
> 
> Beware, setting CXX but not CC can break WITH_LTO. Compiler bitcode is
> generally not compatible between different compiler versions/vendors.

Interesting.  At first I've started to spell out all variables (CC, CPP,
CXX) but then decided to test how stable C ABI is. :-)

I don't know about LTO, but failure to link C code generated by different
compilers looks more like the bug in the compilers, no?

./danfe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Y98a%2B3nFGOVgGbGu>