For now, disable using -fsanitize=bounds for the libc ssp tests, when

using clang 3.5.0, until the runtime support (via compiler-rt) is added.
Otherwise, this would lead to link errors about missing support
libraries.
This commit is contained in:
Dimitry Andric 2014-11-24 20:07:09 +00:00
parent a2d751936b
commit 519195e820
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274978

View File

@ -9,7 +9,10 @@ WARNS?= 2
CFLAGS.h_raw+= -fstack-protector-all -Wstack-protector
.if ${COMPILER_TYPE} == "clang"
# Disable -fsanitize=bounds until runtime support is done for clang 3.5.0.
.if ${COMPILER_VERSION} < 30500
CFLAGS.h_raw+= -fsanitize=bounds
.endif
.elif ${COMPILER_TYPE} == "gcc"
CFLAGS.h_raw+= --param ssp-buffer-size=1
DPADD+= ${LIBSSP}