This syncs the flang patches with the devel/llvm patches, as well as
updates flang to its latest upstream code.
My test suite passes on amd64. Any arm64 changes, if needed, will be
committed in the coming days.
Do the same thing we do with the flang driver and force linking with the
static libraries instead.
Reported off-list by j <AT> bitminer <DOT> ca -- thanks!
While here, remove some comments in Makefile.inc about flang being
integrated into LLVM. That's no longer happening; the new f18 compiler is
scheduled to be integrated into LLVM instead.
some existing COMPILER lines with arch restrictions etc. In the usual
case this is now using "COMPILER = base-clang ports-gcc base-gcc" on
ports with c++ libraries in WANTLIB.
This is basically intended to be a noop on architectures using clang
as the system compiler, but help with other architectures where we
currently have many ports knocked out due to building with an unsuitable
compiler -
- some ports require c++11/newer so the GCC version in base that is used
on these archirtectures is too old.
- some ports have conflicts where an executable is built with one compiler
(e.g. gcc from base) but a library dependency is built with a different
one (e.g. gcc from ports), resulted in mixing incompatible libraries in the
same address space.
devel/gmp is intentionally skipped as it's on the path to building gcc -
the c++ library there is unused in ports (and not built by default upstream)
so intending to disable building gmpcxx in a future commit.
libpgmath CMakeLists.txt files. This worked out to -mcpu=native on the
arm64 package builders, which clang doesn't support. Remove all those flags
which should get flang building again on arm64.
Found looking at phessler@'s arm64 bulk build report.
update also brings in an MD version of libpgmath for arm64 (like it is on
amd64); however, this arm64 MD version is currently disabled until I am
able to test it.
Bumping REVISION for libpgmath and flang (but not driver). Mostly because
of a PLIST sync, but also because the build did change: includes a patch to
stop clang from silently passing off some of the build work to base gcc
(which obviously failed on arm64).