HomeFreeBSD

Allow using sanitizers for ssp tests with out-of-tree compiler

Description

Allow using sanitizers for ssp tests with out-of-tree compiler

With an out-of-tree Clang, we can use the -resource-dir flag when linking
to point it at the runtime libraries from the current SYSROOT.
This moves the path to the clang-internal library directory to a separate
.mk file that can be used by Makefiles that want to find the sanitizer
libraries. I intend to re-use this .mk file for my upcoming changes that
allow building the entire base system with ASAN/UBSAN/MSAN.

Reviewed By: dim
Differential Revision: https://reviews.freebsd.org/D28852

Details

Provenance
arichardsonAuthored on Mar 12 2021, 5:15 PM
Reviewer
dim
Differential Revision
D28852: Allow using sanitizers for ssp tests with out-of-tree compiler
Parents
rG8cf5812af4b7: capsicum-test: Update for O_BENEATH removal
Branches
Unknown
Tags
Unknown