summaryrefslogtreecommitdiff
path: root/dev-lang/ispc
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-10-01 12:43:37 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-10-01 12:43:37 +0000
commit86e8fba0552216709bfe1f01a2237346d2b1098d (patch)
tree389e78dcc0198a30115cfbb2bda0de0abb6f76f2 /dev-lang/ispc
parent6163b2796b14dd0d50aa77a74817b556201cb85c (diff)
downloadbaldeagleos-repo-86e8fba0552216709bfe1f01a2237346d2b1098d.tar.gz
baldeagleos-repo-86e8fba0552216709bfe1f01a2237346d2b1098d.tar.xz
baldeagleos-repo-86e8fba0552216709bfe1f01a2237346d2b1098d.zip
Adding metadata
Diffstat (limited to 'dev-lang/ispc')
-rw-r--r--dev-lang/ispc/files/ispc-1.18.0-llvm.patch39
-rw-r--r--dev-lang/ispc/ispc-1.18.0.ebuild4
-rw-r--r--dev-lang/ispc/ispc-9999.ebuild4
3 files changed, 43 insertions, 4 deletions
diff --git a/dev-lang/ispc/files/ispc-1.18.0-llvm.patch b/dev-lang/ispc/files/ispc-1.18.0-llvm.patch
new file mode 100644
index 000000000000..7303ac0fd6e8
--- /dev/null
+++ b/dev-lang/ispc/files/ispc-1.18.0-llvm.patch
@@ -0,0 +1,39 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 13e66268..27ff8364 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -218,7 +218,7 @@ if (WASM_ENABLED)
+ list(APPEND ISPC_TARGETS wasm-i32x4)
+ endif()
+
+-set(CLANG_LIBRARY_LIST clangFrontend clangDriver clangSerialization clangParse clangSema clangAnalysis clangAST clangBasic clangEdit clangLex)
++set(CLANG_LIBRARY_LIST clang clang-cpp)
+ set(LLVM_COMPONENTS engine ipo bitreader bitwriter instrumentation linker option frontendopenmp)
+
+ if (X86_ENABLED)
+@@ -402,11 +402,8 @@ if (ISPC_USE_ASAN)
+ endif()
+
+ # Link against Clang libraries
+-foreach(clangLib ${CLANG_LIBRARY_LIST})
+- find_library(${clangLib}Path NAMES ${clangLib} HINTS ${LLVM_LIBRARY_DIRS})
+- list(APPEND CLANG_LIBRARY_FULL_PATH_LIST ${${clangLib}Path})
+-endforeach()
+-target_link_libraries(${PROJECT_NAME} ${CLANG_LIBRARY_FULL_PATH_LIST})
++find_package(Clang REQUIRED)
++target_link_libraries(${PROJECT_NAME} ${CLANG_LIBRARY_LIST})
+
+ # Link against LLVM libraries
+ target_link_libraries(${PROJECT_NAME} ${LLVM_LIBRARY_LIST})
+diff --git a/src/llvmutil.cpp b/src/llvmutil.cpp
+index 06fab989..57a7130f 100644
+--- a/src/llvmutil.cpp
++++ b/src/llvmutil.cpp
+@@ -42,6 +42,7 @@
+ #include <llvm/IR/BasicBlock.h>
+ #include <llvm/IR/Instructions.h>
+ #include <llvm/IR/Module.h>
++#include <llvm/Support/raw_ostream.h>
+
+ #ifdef ISPC_GENX_ENABLED
+ #include <llvm/GenXIntrinsics/GenXIntrinsics.h>
diff --git a/dev-lang/ispc/ispc-1.18.0.ebuild b/dev-lang/ispc/ispc-1.18.0.ebuild
index 0cc646a9eaf2..3072b32d983d 100644
--- a/dev-lang/ispc/ispc-1.18.0.ebuild
+++ b/dev-lang/ispc/ispc-1.18.0.ebuild
@@ -32,8 +32,8 @@ BDEPEND="
"
PATCHES=(
- "${FILESDIR}/${PN}-9999-llvm.patch"
- "${FILESDIR}"/ispc-1.18.0-curses-cmake.patch
+ "${FILESDIR}"/${PN}-1.18.0-llvm.patch
+ "${FILESDIR}"/${PN}-1.18.0-curses-cmake.patch
)
pkg_setup() {
diff --git a/dev-lang/ispc/ispc-9999.ebuild b/dev-lang/ispc/ispc-9999.ebuild
index 14e28c0a9a1c..c118a962fa8c 100644
--- a/dev-lang/ispc/ispc-9999.ebuild
+++ b/dev-lang/ispc/ispc-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -31,7 +31,7 @@ BDEPEND="
"
PATCHES=(
- "${FILESDIR}/${PN}-9999-llvm.patch"
+ "${FILESDIR}"/${PN}-9999-llvm.patch
)
CMAKE_BUILD_TYPE="RelWithDebInfo"