freebsd-dev/targets/pseudo
Jessica Clarke 1e4c802913 Fix bootstrapping to actually build lldb-tblgen for later use
Because MK_LLDB=no is in BSARGS, the bootstrap-tools recursive make does
not add lldb-tblgen to _clang_tblgen, causing it to not be built. This
means that the build currently always uses the host's lldb-tblgen
(which, whilst currently it appears to work, could in future break if
TableGen backends are added or altered) and, if it doesn't exist (either
because the current FreeBSD system was built with it disabled, or you're
building on macOS/Linux), fails. Linux and macOS cross-builds used to
work simply because LLDB was previously in BROKEN_OPTIONS when building
on non-FreeBSD.

Instead, move MK_LLDB=no from BSARGS to XMAKE. This ensures that the
lib/clang build in cross-tools continues to not build LLDB parts for the
bootstrap toolchain (both to save time/space on FreeBSD, and because our
vendored LLDB does not include the macOS and Linux host files so those
would fail to build).

The DIRDEPS target is updated to move MK_LLDB=no from the BSARGS block
that mirrors Makefile.inc1 to the line that disables additional
toolchain components. The DIRDEPS build likely suffers from the same
issue currently, but having never used it and not being familiar with
how it works I am leaving that as-is. If it does suffer from the same
issue it should be easily reproducible by renaming /usr/bin/lldb-tblgen
or moving it to a directory not in PATH.

Fixes:		31ba4ce889 ("Allow bootstrapping llvm-tblgen on macOS and Linux")
MFC after:	1 week
Reviewed by:	dim, emaste, imp
Differential Revision:	https://reviews.freebsd.org/D31531
2021-08-24 15:04:25 +01:00
..
bootstrap-tools Fix bootstrapping to actually build lldb-tblgen for later use 2021-08-24 15:04:25 +01:00
clang Add WITH_CLANG_FORMAT option 2020-06-24 17:03:42 +00:00
gcc Garbage collect removed directories. 2015-12-07 16:08:26 +00:00
hosttools Remove mkcsmapper_static and mkesdb_static from build-tools 2021-08-02 14:33:25 +01:00
kernel DIRDEPS_BUILD: Build the kernel in the same place as buildkernel would. 2016-05-26 23:20:10 +00:00
stage META_MODE: Simplify the META_COOKIE handling to use .USE/.USEBEFORE. 2016-03-11 23:45:28 +00:00
tests Disconnect libpathconv tests since they require external perl and do not work with kyua. 2017-10-31 19:52:30 +00:00
the-lot Properly connect tests. 2017-10-31 00:03:49 +00:00
toolchain remove GCC 4.2.1 build infrastructure 2020-02-29 03:25:51 +00:00
universe local.meta.sys.mk already defines TARGET_ARCHES_arm 2015-12-08 00:22:24 +00:00
userland Remove svnlite. 2021-06-11 14:56:41 -07:00
Makefile.inc