LLVM flags when building CURRENT

Eugene Grosbein eugen at grosbein.net
Thu Nov 28 02:55:55 UTC 2019


27.11.2019 21:12, Rares Aioanei wrote:

> Hey,
> Using 13.0-CURRENT so I'm using source to update the machine, which is
> a bit constrained when it comes to resources. My question is : Where
> is the best place to add a flag to cmake for LLVM
> (-DLLVM_TARGETS_TO_BUILD) so that it only builds for X86?

1. kldload filemon # and perhaps auto-load it with /boot/loader.conf or /etc/rc.conf
2. echo WITH_META_MODE=yes >> /etc/src-env.conf
3. for /etc/src.conf:

WITHOUT_LLVM_TARGET_ALL=
WITH_LLVM_TARGET_X86=
WITHOUT_CLANG_FULL=

4. If its resources are really constrained, also add this to /etc/src.conf:

WITHOUT_KERNEL_SYMBOLS=
WITHOUT_DEBUG_FILES=
WITHOUT_TESTS=



More information about the freebsd-hackers mailing list