diff options
| author | Alex Richardson <arichardson@FreeBSD.org> | 2021-04-15 15:27:52 +0000 |
|---|---|---|
| committer | Alex Richardson <arichardson@FreeBSD.org> | 2021-04-15 15:27:52 +0000 |
| commit | 168234fa67c38f898b784b3265dd77ace0b0a2f9 (patch) | |
| tree | 3fa4a4bd69d75c771eb6c4f74b2c55464256efb9 /lib/msun | |
| parent | 1663120ae452fe3783c74ce40522caf0e2327608 (diff) | |
Diffstat (limited to 'lib/msun')
| -rw-r--r-- | lib/msun/Makefile | 6 | ||||
| -rw-r--r-- | lib/msun/tests/Makefile | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/msun/Makefile b/lib/msun/Makefile index 0a486bb5a086..7107aad56aa7 100644 --- a/lib/msun/Makefile +++ b/lib/msun/Makefile @@ -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> diff --git a/lib/msun/tests/Makefile b/lib/msun/tests/Makefile index 70f7d2fe5135..d33a1b04888d 100644 --- a/lib/msun/tests/Makefile +++ b/lib/msun/tests/Makefile @@ -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> |
