This allows instrumenting e.g. test binaries even when compiling with an
external clang (e.g. CROSS_TOOLCHAIN=llvm11). I have some upcoming patches
that allow building the entire base system with ASan/UBSan/etc.
instrumentation and this is required in preparation for this.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
LGTM; as long as nobody tries to build these with gcc, it should be OK. On the other hand, maybe somebody will now complain that "clang stuff" is being built when they specifically disabled clang in their src.conf? But in that case we would need to add a separate MK_CLANG_RT option...
Comment Actions
I don't think so, because somebody who doesn't want to build toolchains (and thus uses llvm packages) will likely also have this option disabled. For now, lets just build this part unconditionally, at least when the compiler type is clang.
Comment Actions
The *san runtimes are not that large / do not take too long to build I believe.
If we want to make them optional we could introduce MK_CLANG_RT or general MK_RUNTIMES or whatnot.