When building libomp for i386, clang 9.0.0 produces a new warning about

large atomic operations "possibly incurring significant performance
penalties", but there is not much we can do about it, so squelch that
warning.
This commit is contained in:
Dimitry Andric 2019-09-08 10:00:21 +00:00
parent e2d4fd9739
commit 022d92870f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/clang900-import/; revision=352029

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.compiler.mk>
SHLIB_NAME= libomp.so
OMPSRC= ${SRCTOP}/contrib/openmp/runtime/src
@ -56,6 +58,13 @@ CXXFLAGS+= -fno-exceptions
CXXFLAGS+= -fno-rtti
CXXSTD= c++11
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 90000
# When targeting i386, clang 9.0.0 produces a new warning about large atomic
# operations "possibly incurring significant performance penalties", but there
# is not much we can do about it.
CWARNFLAGS+= -Wno-atomic-alignment
.endif
LDFLAGS+= -Wl,--warn-shared-textrel
LDFLAGS+= -Wl,--gc-sections
LDFLAGS+= -Wl,-z,noexecstack