Page MenuHomeFreeBSD

Add CLANG/LLD/LLD to BROKEN_OPTIONS when building on non-FreeBSD
ClosedPublic

Authored by arichardson on Feb 7 2018, 4:49 PM.

Details

Summary

These tools require a bootstrap llvm-tblgen/clang-tblgen and that cannot
be built with the current make infrastructure: the config header is not
correct for Linux/macOS and we don't include the CMakeLists.txt in contrib
so we can't generate one that would be correct.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Feb 27 2019, 2:48 AM

No longer accurate, I have changes to allow bootstrapping localedef and CDDL code.

Now only clang+lld+lldb are broken

arichardson retitled this revision from crossbuild: disable MK_* options that won't work on non-FreeBSD systems to Add CLANG/LLD/LLD to BROKEN_OPTIONS when building on non-FreeBSD.Aug 7 2020, 11:00 AM
arichardson edited the summary of this revision. (Show Details)
arichardson added a reviewer: dim.
arichardson edited the summary of this revision. (Show Details)

fix typo in comment

No comment on the list of options, but the method being used is proper.

This revision is now accepted and ready to land.Aug 7 2020, 8:11 PM

Unfortunately generating the config headers requires CMake, so getting that bootstrapped is rather tricky. In that case people would be better off using the upstream sources directly, and installing all prerequisites in some other way.

That said, better to error out on this earlier than later. :)

share/mk/src.opts.mk
372 ↗(On Diff #75549)

s/boostrap/bootstrap/