[llvm] Fix GCC15 build (#52008)

This commit is contained in:
Chris W 2026-05-27 19:03:00 +01:00 committed by GitHub
parent ec7705e8ea
commit f4a2b74e2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 32 additions and 2 deletions

View File

@ -0,0 +1,24 @@
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
index 09676d792..17444147b 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>
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
index 437a7bd6f..fd7d79484 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
@@ -13,6 +13,7 @@
#ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCTARGETDESC_H
#define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCTARGETDESC_H
+#include <cstdint>
#include <memory>
#include <string>

View File

@ -13,6 +13,7 @@ vcpkg_from_github(
0004-disable-libomp-aliases.patch
0005-remove-numpy.patch
0006-create-destination-mlir-directory.patch
0007-fix-missing-includes.patch
75711.patch # [clang] Add intrin0.h header to mimic intrin0.h used by MSVC STL for clang-cl #75711
79694.patch # [SEH] Ignore EH pad check for internal intrinsics #79694
82407.patch # [Clang][Sema] Fix incorrect rejection default construction of union with nontrivial member #82407

View File

@ -1,7 +1,7 @@
{
"name": "llvm",
"version": "18.1.6",
"port-version": 5,
"port-version": 6,
"description": "The LLVM Compiler Infrastructure.",
"homepage": "https://llvm.org",
"license": "Apache-2.0 WITH LLVM-exception",

View File

@ -6142,7 +6142,7 @@
},
"llvm": {
"baseline": "18.1.6",
"port-version": 5
"port-version": 6
},
"lmdb": {
"baseline": "0.9.35",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f2b6e11b439fb46388c88f81793fb09cc3b045a0",
"version": "18.1.6",
"port-version": 6
},
{
"git-tree": "680d20d34077e7f0937b68f8f9bcd22fac6bd11e",
"version": "18.1.6",