Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/apache2/llvm/lib/libclangAST Build libclangAST with...
details: https://anonhg.NetBSD.org/src/rev/624f09d66e94
branches: trunk
changeset: 461117:624f09d66e94
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Nov 16 15:51:26 2019 +0000
description:
Build libclangAST with -O1 when the host compiler is GCC 7 to avoid
miscompiles.
diffstat:
external/apache2/llvm/lib/libclangAST/Makefile | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 4ca0a0bae26a -r 624f09d66e94 external/apache2/llvm/lib/libclangAST/Makefile
--- a/external/apache2/llvm/lib/libclangAST/Makefile Sat Nov 16 15:50:45 2019 +0000
+++ b/external/apache2/llvm/lib/libclangAST/Makefile Sat Nov 16 15:51:26 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2019/11/16 15:51:26 joerg Exp $
LIB= clangAST
@@ -112,6 +112,10 @@
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
+BAD_GCC_VERSION!= case `${HOST_CXX} --version 2> /dev/null` in [cg]++*7.4*) echo yes ;; *) echo no ;; esac
+. if ${BAD_GCC_VERSION} == "yes"
+HOST_CXXFLAGS+= -O0
+. endif
.else
.include <bsd.lib.mk>
.endif
Home |
Main Index |
Thread Index |
Old Index