Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/tests/ssp/Makefile
Show All 27 Lines | |||||
# This testcase doesn't run properly when not compiled with -fsantize=bounds | # This testcase doesn't run properly when not compiled with -fsantize=bounds | ||||
# with clang, which is currently contingent on a compiler_rt update | # with clang, which is currently contingent on a compiler_rt update | ||||
# | # | ||||
# XXX: the h_raw/h_read testcases don't cause a SIGABRT with in-tree gcc right | # XXX: the h_raw/h_read testcases don't cause a SIGABRT with in-tree gcc right | ||||
# now on amd64 when it trips the stack bounds specified in t_ssp.sh . This | # now on amd64 when it trips the stack bounds specified in t_ssp.sh . This | ||||
# probably needs to be fixed as it's currently hardcoded. | # probably needs to be fixed as it's currently hardcoded. | ||||
# | # | ||||
# sanitizer is not tested or supported for ARM right now. sbruno | # sanitizer is not tested or supported for ARM right now. sbruno | ||||
.if ${COMPILER_TYPE} == "clang" && !defined(_SKIP_BUILD) && \ | .if ${COMPILER_TYPE} == "clang" && ${CC} == "cc" && !defined(_SKIP_BUILD) && \ | ||||
(!defined(_RECURSING_PROGS) || ${PROG} == "h_raw") | (!defined(_RECURSING_PROGS) || ${PROG} == "h_raw") | ||||
.if !defined(_CLANG_RESOURCE_DIR) | .if !defined(_CLANG_RESOURCE_DIR) | ||||
_CLANG_RESOURCE_DIR!= ${CC:N${CCACHE_BIN}} -print-resource-dir | _CLANG_RESOURCE_DIR!= ${CC:N${CCACHE_BIN}} -print-resource-dir | ||||
.export _CLANG_RESOURCE_DIR | .export _CLANG_RESOURCE_DIR | ||||
.endif | .endif | ||||
_libclang_rt_arch= ${MACHINE_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/} | _libclang_rt_arch= ${MACHINE_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/} | ||||
_libclang_rt_ubsan= ${_CLANG_RESOURCE_DIR}/lib/freebsd/libclang_rt.ubsan_standalone-${_libclang_rt_arch}.a | _libclang_rt_ubsan= ${_CLANG_RESOURCE_DIR}/lib/freebsd/libclang_rt.ubsan_standalone-${_libclang_rt_arch}.a | ||||
.if exists(${_libclang_rt_ubsan}) | .if exists(${_libclang_rt_ubsan}) | ||||
Show All 19 Lines |