From: Marcin Krol Date: Sat, 16 Aug 2025 14:44:51 +0000 (+0200) Subject: - build fix from Fedora X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=68d27e0baa31dda6c2202cf3c555c4f35df2ed67;p=packages%2Fllvm.git - build fix from Fedora --- diff --git a/cstdint.patch b/cstdint.patch new file mode 100644 index 0000000..1ddd916 --- /dev/null +++ b/cstdint.patch @@ -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 + #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 + // We include this header because it cannot be practically forward + // declared, and are effectively language features. + #include "llvm/Support/Casting.h" diff --git a/llvm.spec b/llvm.spec index 3a1755a..3a13e21 100644 --- 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 +Patch13: cstdint.patch 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 -P13 -p1 grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{ s,^#!.*bin/env python3\?,#!%{__python3},