Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/gen -frounding-math is gcc specific, help cla...



details:   https://anonhg.NetBSD.org/src/rev/0643746d75be
branches:  trunk
changeset: 456192:0643746d75be
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Apr 26 19:17:05 2019 +0000

description:
-frounding-math is gcc specific, help clang builds

diffstat:

 tests/lib/libc/gen/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1cee2c3293b7 -r 0643746d75be tests/lib/libc/gen/Makefile
--- a/tests/lib/libc/gen/Makefile       Fri Apr 26 18:49:35 2019 +0000
+++ b/tests/lib/libc/gen/Makefile       Fri Apr 26 19:17:05 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.52 2019/04/24 15:12:09 christos Exp $
+# $NetBSD: Makefile,v 1.53 2019/04/26 19:17:05 maya Exp $
 
 .include <bsd.own.mk>
 
@@ -40,7 +40,7 @@
 TESTS_C+=      t_vis
 
 CPPFLAGS.t_siginfo.c+=-D__TEST_FENV
-COPTS.t_fpsetround.c+=-frounding-math
+COPTS.t_fpsetround.c+=${${ACTIVE_CC} == "gcc":? -frounding-math :}
 
 LDADD.t_siginfo+=      -lm
 DPADD.t_siginfo+=      ${LIBM}



Home | Main Index | Thread Index | Old Index