Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/llvm-lib/libLLVMSupport Fix LLVM build with host gcc 13
details: https://anonhg.NetBSD.org/src/rev/8cffae025acc
branches: trunk
changeset: 376076:8cffae025acc
user: hgutch <hgutch%NetBSD.org@localhost>
date: Tue May 30 19:05:04 2023 +0000
description:
Fix LLVM build with host gcc 13
Building LLVM with a host gcc 13 fails and suggests including <cstdint>
in external/apache2/llvm/dist/llvm/include/llvm/Support/Signals.h .
Instead of this, joerg@ suggested not modifying the llvm vendor branch
but instead working around this in our LLVM build infrastructure.
diffstat:
external/apache2/llvm/autoconf/include/llvm/Config/config.h.in | 4 ++++
tools/llvm-lib/libLLVMSupport/Makefile | 4 +++-
2 files changed, 7 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r e48ba518caa7 -r 8cffae025acc external/apache2/llvm/autoconf/include/llvm/Config/config.h.in
--- a/external/apache2/llvm/autoconf/include/llvm/Config/config.h.in Tue May 30 19:04:42 2023 +0000
+++ b/external/apache2/llvm/autoconf/include/llvm/Config/config.h.in Tue May 30 19:05:04 2023 +0000
@@ -3,6 +3,10 @@
#ifndef CONFIG_H
#define CONFIG_H
+#ifdef __cplusplus
+#include <cstdint>
+#endif
+
/* Exported configuration */
#include "llvm/Config/llvm-config.h"
diff -r e48ba518caa7 -r 8cffae025acc tools/llvm-lib/libLLVMSupport/Makefile
--- a/tools/llvm-lib/libLLVMSupport/Makefile Tue May 30 19:04:42 2023 +0000
+++ b/tools/llvm-lib/libLLVMSupport/Makefile Tue May 30 19:05:04 2023 +0000
@@ -1,3 +1,5 @@
-# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:16 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2023/05/30 19:05:05 hgutch Exp $
+
+CPPFLAGS.Signals.cpp+= -include llvm/Config/config.h
.include <bsd.init.mk>
Home |
Main Index |
Thread Index |
Old Index