Enable MK_LLVM_BINUTILS if MK_ASAN is requested
ASan will not be able to provide backtraces with symbol names with elftoolchain's addr2line. To fix this turn MK_LLVM_BINUTILS on by default when ASan instrumentation is requested. Reviewed By: emaste, markj Differential Revision: https://reviews.freebsd.org/D31061
This commit is contained in:
parent
021385aba5
commit
24f586182f
@ -470,6 +470,12 @@ MK_CLANG_FULL:= no
|
||||
MK_LLVM_COV:= no
|
||||
.endif
|
||||
|
||||
.if ${MK_ASAN} == "yes"
|
||||
# In order to get sensible backtraces from ASAN we have to install
|
||||
# llvm-symbolizer as /usr/bin/addr2line instead of the elftoolchain version.
|
||||
MK_LLVM_BINUTILS:= yes
|
||||
.endif
|
||||
|
||||
.if ${MK_LLVM_BINUTILS} == "yes"
|
||||
# MK_LLVM_CXXFILT is a subset of MK_LLVM_BINUTILS and should therefore be
|
||||
# enabled if MK_LLVM_BINUTILS is set.
|
||||
|
Loading…
Reference in New Issue
Block a user