aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/ispc/07e63aeea2687b799acca932670f0ad12591097e.patch22
-rw-r--r--development/ispc/ispc.SlackBuild2
2 files changed, 24 insertions, 0 deletions
diff --git a/development/ispc/07e63aeea2687b799acca932670f0ad12591097e.patch b/development/ispc/07e63aeea2687b799acca932670f0ad12591097e.patch
new file mode 100644
index 0000000000..dfbb179f66
--- /dev/null
+++ b/development/ispc/07e63aeea2687b799acca932670f0ad12591097e.patch
@@ -0,0 +1,22 @@
+From 07e63aeea2687b799acca932670f0ad12591097e Mon Sep 17 00:00:00 2001
+From: Arina Neshlyaeva <arina.neshlyaeva@intel.com>
+Date: Mon, 10 Mar 2025 17:11:32 -0700
+Subject: [PATCH] Fix getWithCaptureInfo for LLVM 20.1
+
+---
+ src/module.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/module.cpp b/src/module.cpp
+index 112aaacee66..ec33261b815 100644
+--- a/src/module.cpp
++++ b/src/module.cpp
+@@ -1180,7 +1180,7 @@ void Module::AddFunctionDeclaration(const std::string &name, const FunctionType
+
+ if (attrList->HasAttribute("noescape")) {
+ if (argType->IsPointerType() && argType->IsUniformType()) {
+-#if ISPC_LLVM_VERSION > ISPC_LLVM_20_0
++#if ISPC_LLVM_VERSION >= ISPC_LLVM_21_0
+ function->addParamAttr(
+ i, llvm::Attribute::getWithCaptureInfo(function->getContext(), llvm::CaptureInfo::none()));
+ #else
diff --git a/development/ispc/ispc.SlackBuild b/development/ispc/ispc.SlackBuild
index 000c43f9c2..cbe6c1fae0 100644
--- a/development/ispc/ispc.SlackBuild
+++ b/development/ispc/ispc.SlackBuild
@@ -86,6 +86,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
+patch -p1 < $CWD/07e63aeea2687b799acca932670f0ad12591097e.patch
+
mkdir -p build
cd build
cmake \