mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-04-18 18:18:44 +00:00
29 lines
889 B
Diff
29 lines
889 B
Diff
From aa01bd3a71399edb05fa9b0ab8e0bd35585aa1c5 Mon Sep 17 00:00:00 2001
|
|
From: Sam James <sam@gentoo.org>
|
|
Date: Fri, 2 Aug 2024 23:07:21 +0100
|
|
Subject: [PATCH 1/2] Add `<cstdint>` to SmallVector (#101761)
|
|
|
|
SmallVector uses `uint32_t`, `uint64_t` without including `<cstdint>`
|
|
which fails to build w/ GCC 15 after a change in libstdc++ [0]
|
|
|
|
[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2
|
|
---
|
|
llvm/include/llvm/ADT/SmallVector.h | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
|
|
index e34702bdb..1c0f3465b 100644
|
|
--- a/llvm/include/llvm/ADT/SmallVector.h
|
|
+++ b/llvm/include/llvm/ADT/SmallVector.h
|
|
@@ -19,6 +19,7 @@
|
|
#include <algorithm>
|
|
#include <cassert>
|
|
#include <cstddef>
|
|
+#include <cstdint>
|
|
#include <cstdlib>
|
|
#include <cstring>
|
|
#include <functional>
|
|
--
|
|
2.51.0
|
|
|