commit: 6f5f03d793825d23190f9530d7d0359199f2cc30
Author: Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
AuthorDate: Thu Sep 29 09:46:10 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 29 23:52:33 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f5f03d7
dev-lang/ispc: Update live ebuild llvm patch
Signed-off-by: Sebastian Parborg <darkdefende <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-lang/ispc/files/ispc-9999-llvm.patch | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/dev-lang/ispc/files/ispc-9999-llvm.patch
b/dev-lang/ispc/files/ispc-9999-llvm.patch
index 7303ac0fd6e8..934d9eaf5a60 100644
--- a/dev-lang/ispc/files/ispc-9999-llvm.patch
+++ b/dev-lang/ispc/files/ispc-9999-llvm.patch
@@ -2,15 +2,18 @@ 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)
+@@ -218,10 +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)
+-if (${LLVM_VERSION_NUMBER} VERSION_GREATER_EQUAL "15.0.0")
+- list(APPEND CLANG_LIBRARY_LIST clangSupport)
+-endif()
set(LLVM_COMPONENTS engine ipo bitreader bitwriter instrumentation linker
option frontendopenmp)
-
- if (X86_ENABLED)
+ if (${LLVM_VERSION_NUMBER} VERSION_GREATER_EQUAL "15.0.0")
+ # windowsdriver is a small library introduced in LLVM 15. While it's
targeted at Windows only,
@@ -402,11 +402,8 @@ if (ISPC_USE_ASAN)
endif()
@@ -24,7 +27,7 @@ index 13e66268..27ff8364 100644
+target_link_libraries(${PROJECT_NAME} ${CLANG_LIBRARY_LIST})
# Link against LLVM libraries
- target_link_libraries(${PROJECT_NAME} ${LLVM_LIBRARY_LIST})
+ target_link_libraries(${PROJECT_NAME} ${LLVM_LIBRARY_LIST} ${CMAKE_DL_LIBS})
diff --git a/src/llvmutil.cpp b/src/llvmutil.cpp
index 06fab989..57a7130f 100644
--- a/src/llvmutil.cpp