Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/misc hack for clang/powerpc



details:   https://anonhg.NetBSD.org/src/rev/48873859226f
branches:  trunk
changeset: 744340:48873859226f
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 30 00:42:58 2020 +0000

description:
hack for clang/powerpc

diffstat:

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

diffs (18 lines):

diff -r 56576e4b7c04 -r 48873859226f tests/lib/libc/misc/Makefile
--- a/tests/lib/libc/misc/Makefile      Thu Jan 30 00:36:29 2020 +0000
+++ b/tests/lib/libc/misc/Makefile      Thu Jan 30 00:42:58 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2019/09/29 23:45:00 mrg Exp $
+# $NetBSD: Makefile,v 1.6 2020/01/30 00:42:58 christos Exp $
 
 .include <bsd.own.mk>
 
@@ -28,6 +28,8 @@
 .endif
 COPTS.t_ubsan.c += -Wno-stack-protector
 COPTS.t_ubsanxx.cpp += -Wno-stack-protector
+COPTS.ubsan.c+=    ${${ACTIVE_CC} == "clang" && ${MACHINE_ARCH} == "powerpc":?  -O0 :}
+
 
 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
 COPTS.t_ubsan.c+=      -Wno-int-in-bool-context



Home | Main Index | Thread Index | Old Index