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

(cherry picked from commit fe525d3f916602ddac3286641dab8f5e274daa44)

Details

Provenance
arichardsonAuthored on Mar 12 2021, 5:15 PM
dimCommitted on Dec 25 2021, 11:50 AM
Reviewer
dim
Differential Revision
D28852: Allow using sanitizers for ssp tests with out-of-tree compiler
Parents
rGf00ca4a1c59d: Add a few missed files to libclang_rt.profile-<arch>.a
Branches
Unknown
Tags
Unknown