mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
lib/msun: Exclude ignored-pragmas from -Werror
This avoids build failures due to the clang 12 warning:
'#pragma FENV_ACCESS' is not supported on this target - ignored
Clang 12 currently emits this warning for all non-x86 architectures.
While this can result in incorrect code generation (e.g. on AArch64 some
exceptions are not raised as expected), this is a pre-existing issue and
we should not fail the build due to this warning.
Reviewed By: dim, emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D29743
(cherry picked from commit 168234fa67)
This commit is contained in:
parent
a18882ec97
commit
a6898ea04e
2 changed files with 12 additions and 0 deletions
|
|
@ -255,4 +255,10 @@ MLINKS+=trunc.3 truncf.3 trunc.3 truncl.3
|
|||
HAS_TESTS=
|
||||
SUBDIR.${MK_TESTS}+= tests
|
||||
|
||||
.include <bsd.compiler.mk>
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 120000
|
||||
# Silence '#pragma FENV_ACCESS' is not supported on this target - ignored
|
||||
CWARNFLAGS+= -Wno-error=ignored-pragmas
|
||||
.endif
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
|
|
|||
|
|
@ -100,6 +100,12 @@ CFLAGS+= -DLDBL_PREC=${LDBL_PREC}
|
|||
|
||||
CFLAGS.fe_round_test+= -D__HAVE_FENV
|
||||
|
||||
.include <bsd.compiler.mk>
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 120000
|
||||
# Silence '#pragma FENV_ACCESS' is not supported on this target - ignored
|
||||
CWARNFLAGS+= -Wno-error=ignored-pragmas
|
||||
.endif
|
||||
|
||||
.include <netbsd-tests.test.mk>
|
||||
|
||||
.include <bsd.test.mk>
|
||||
|
|
|
|||
Loading…
Reference in a new issue