First of all apologies for the niche question. As part of our older systems support on MacPorts, I am attempting a universal runtimes build of libcxx and libcxxabi using gcc8 as the initial build compiler. Currently I am using the llvm-7.1.0 tree for this.
The clang bootstrap compiler is to be built as native arch, then I would like to use that clang to make the universal runtimes.
We use the following initially to make sure that gcc8 builds the bootstrap compiler in the native arch:
This actually works just fine to generate libcxx/libcxxabi in the native arch, but try as I may, I cannot find a way to make libcxx and libcxxabi build as universal binaries using the bootstrap compiler.
I tried adding runtime targets:
or just forcing the CXXFLAGS and CCFLAGS to include “-arch i386 -arch x86_64” but no luck.
I was wondering if first of all building the runtimes as universal is supported (I know it is in compiler-rt) and if so, is there an approach or runtimes configuration option I am meant to set for this?
Our current configure line looks like this, with a bunch of MacPorts’ standard cmake defaults in there:
cd “/opt/local/var/macports/build/_opt_myports_lang_libcxx/libcxx/work/build” &&
cmake -G “CodeBlocks - Unix Makefiles”
&& make install-cxx install-cxxabi