Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/sync Do not try the C++ 2011 test with gcc < 4.8



details:   https://anonhg.NetBSD.org/src/rev/e1c0279b6203
branches:  trunk
changeset: 803129:e1c0279b6203
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Oct 13 09:57:35 2014 +0000

description:
Do not try the C++ 2011 test with gcc < 4.8

diffstat:

 tests/lib/libc/sync/Makefile |  16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 533afeee0aac -r e1c0279b6203 tests/lib/libc/sync/Makefile
--- a/tests/lib/libc/sync/Makefile      Mon Oct 13 09:21:06 2014 +0000
+++ b/tests/lib/libc/sync/Makefile      Mon Oct 13 09:57:35 2014 +0000
@@ -1,12 +1,20 @@
-# $NetBSD: Makefile,v 1.3 2014/10/12 08:02:35 martin Exp $
+# $NetBSD: Makefile,v 1.4 2014/10/13 09:57:35 martin Exp $
 
 WARNS=0
 NOMAN=1
-CXXFLAGS+= -std=c++11
-
-PROG=all_sync_ops_linkable # cpp_atomic_ops_linkable
 
 proginstall:
        @echo This directory features link time only tests.
 
 .include <bsd.prog.mk>
+
+PROG=  all_sync_ops_linkable
+
+.if "${ACTIVE_CC}" == "clang" || \
+    ("${ACTIVE_CC}" == "gcc" && "${HAVE_GCC}" == "48")
+
+CXXFLAGS+= -std=c++11
+PROG+= cpp_atomic_ops_linkable
+
+.endif
+



Home | Main Index | Thread Index | Old Index