Re: git: 84ba2383e7be - main - games/openenroth: unbreak the port's build in pre-C++20 environments
Date: Sun, 05 Feb 2023 02:56:59 UTC
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