]> TLD Linux GIT Repositories - packages/llvm.git/commitdiff
- build fix from Fedora master
authorMarcin Krol <hawk@tld-linux.org>
Sat, 16 Aug 2025 14:44:51 +0000 (16:44 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sat, 16 Aug 2025 14:44:51 +0000 (16:44 +0200)
cstdint.patch [new file with mode: 0644]
llvm.spec

diff --git a/cstdint.patch b/cstdint.patch
new file mode 100644 (file)
index 0000000..1ddd916
--- /dev/null
@@ -0,0 +1,22 @@
+--- a/tools/mlir/include/mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h   2025-01-14 10:41:02.000000000 +0100
++++ b/tools/mlir/include/mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h   2025-01-17 08:31:49.581864809 +0100
+@@ -9,6 +9,7 @@
+ #ifndef MLIR_DIALECT_AFFINE_IR_VALUEBOUNDSOPINTERFACEIMPL_H
+ #define MLIR_DIALECT_AFFINE_IR_VALUEBOUNDSOPINTERFACEIMPL_H
++#include <cstdint>
+ #include "mlir/Support/LLVM.h"
+ namespace mlir {
+--- a/tools/mlir/include/mlir/Support/LLVM.h   2025-01-14 10:41:02.000000000 +0100
++++ b/tools/mlir/include/mlir/Support/LLVM.h   2025-01-17 10:20:19.356337873 +0100
+@@ -18,6 +18,9 @@
+ #ifndef MLIR_SUPPORT_LLVM_H
+ #define MLIR_SUPPORT_LLVM_H
++
++
++#include <cstdint>
+ // We include this header because it cannot be practically forward
+ // declared, and are effectively language features.
+ #include "llvm/Support/Casting.h"
index 3a1755ac5b48bccf5daea7186a4eb0dc45b917dd..3a13e21b90d3a1b42f21ff6eb06b62c1e8fb3805 100644 (file)
--- a/llvm.spec
+++ b/llvm.spec
@@ -118,6 +118,7 @@ Patch9:             %{name}-libexecdir.patch
 Patch10:       compiler-rt-paths.patch
 Patch11:       cmake-utils-path-override.patch
 Patch12:       x32-compiler-rt.patch
 Patch10:       compiler-rt-paths.patch
 Patch11:       cmake-utils-path-override.patch
 Patch12:       x32-compiler-rt.patch
+Patch13:       cstdint.patch
 URL:           https://llvm.org/
 BuildRequires: bash
 BuildRequires: binutils-devel
 URL:           https://llvm.org/
 BuildRequires: bash
 BuildRequires: binutils-devel
@@ -711,6 +712,7 @@ Integracja narzÄ™dzi Clang do formatowania i zmiany nazw z Vimem.
 %patch -P12 -p1
 %endif
 %patch -P11 -p1
 %patch -P12 -p1
 %endif
 %patch -P11 -p1
+%patch -P13 -p1
 
 grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{
        s,^#!.*bin/env python3\?,#!%{__python3},
 
 grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{
        s,^#!.*bin/env python3\?,#!%{__python3},