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/aa947e2177cd
branches: trunk
changeset: 332987:aa947e2177cd
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 9424deaad812 -r aa947e2177cd 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