Source-Changes-HG archive

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

[src/netbsd-10]: src/tools/llvm-lib/libLLVMSupport Pull up following revision...



details:   https://anonhg.NetBSD.org/src/rev/6ec392ae51e9
branches:  netbsd-10
changeset: 377249:6ec392ae51e9
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jul 03 09:39:39 2023 +0000

description:
Pull up following revision(s) (requested by hgutch in ticket #223):

        tools/llvm-lib/libLLVMSupport/Makefile: revision 1.2
        external/apache2/llvm/autoconf/include/llvm/Config/config.h.in: revision 1.3

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 3f9a52941771 -r 6ec392ae51e9 external/apache2/llvm/autoconf/include/llvm/Config/config.h.in
--- a/external/apache2/llvm/autoconf/include/llvm/Config/config.h.in    Fri Jun 30 18:10:44 2023 +0000
+++ b/external/apache2/llvm/autoconf/include/llvm/Config/config.h.in    Mon Jul 03 09:39:39 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 3f9a52941771 -r 6ec392ae51e9 tools/llvm-lib/libLLVMSupport/Makefile
--- a/tools/llvm-lib/libLLVMSupport/Makefile    Fri Jun 30 18:10:44 2023 +0000
+++ b/tools/llvm-lib/libLLVMSupport/Makefile    Mon Jul 03 09:39:39 2023 +0000
@@ -1,3 +1,5 @@
-#      $NetBSD: Makefile,v 1.1 2011/02/06 01:14:16 joerg Exp $
+#      $NetBSD: Makefile,v 1.1.56.1 2023/07/03 09:39:39 martin Exp $
+
+CPPFLAGS.Signals.cpp+= -include llvm/Config/config.h
 
 .include <bsd.init.mk>



Home | Main Index | Thread Index | Old Index