Page MenuHomeFreeBSD

Only use ASAN when using the in-tree compiler

Authored by brooks on Oct 22 2020, 4:18 PM.



When building FreeBSD 11 on a FreeBSD 12 system with
CROSS_TOOLCHAIN=llvm10 we end up trying to link against the packaged
version of the sanitizer library. This resulted in a requirement for
getentropy(3) which is not present in FreeBSD 11.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

brooks created this revision.

I couldn't find an easier way to determine if the compiler was suitable. It might be that we want to skip these tests entirely instead, but then we're voting to make them dead code in the long term.

This revision is now accepted and ready to land.Oct 22 2020, 4:46 PM
This revision was automatically updated to reflect the committed changes.