Addd work around for LLVM bug 35023.

Clang crashes when compiling zstd_compress.c with optimization for ARM targets.
https://bugs.llvm.org/show_bug.cgi?id=35023
This commit is contained in:
Michal Meloun 2017-11-26 16:41:30 +00:00
parent 5320ef6adf
commit 30347b77cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326232

View file

@ -38,4 +38,9 @@ ZSTDDIR= ${SRCTOP}/sys/contrib/zstd
${ZSTDDIR}/lib/decompress ${ZSTDDIR}/lib/deprecated \
${ZSTDDIR}/lib/dictBuilder ${ZSTDDIR}/lib
# Work around for LLVM bug 35023, https://bugs.llvm.org/show_bug.cgi?id=35023
.if ${MACHINE_ARCH:Marm*} != ""
CFLAGS.zstd_compress.c+= -O0
.endif
.include <bsd.lib.mk>