Skip to content

Commit

Permalink
LLVM patch to rename the installed .so to libLLVMTCE.so
Browse files Browse the repository at this point in the history
This will be used starting from LLVM 11 to avoid the usual
annoying conflicts with system/other LLVM, that seem to be
hard to avoid with the broken libtool (see Issue #91).
  • Loading branch information
pjaaskel committed Nov 3, 2020
1 parent 184fde7 commit e4554bd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tce/tools/patches/llvm-10-llvmtce-so.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/llvm/tools/llvm-shlib/CMakeLists.txt b/llvm/tools/llvm-shlib/CMakeLists.txt
index 3eb6db33a43..0e3a645be6e 100644
--- llvm/tools/llvm-shlib/CMakeLists.txt
+++ llvm/tools/llvm-shlib/CMakeLists.txt
@@ -30,7 +30,7 @@ if(LLVM_BUILD_LLVM_DYLIB)
if (LLVM_LINK_LLVM_DYLIB)
set(INSTALL_WITH_TOOLCHAIN INSTALL_WITH_TOOLCHAIN)
endif()
- add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${INSTALL_WITH_TOOLCHAIN} ${SOURCES})
+ add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${INSTALL_WITH_TOOLCHAIN} OUTPUT_NAME "LLVMTCE" ${SOURCES})

list(REMOVE_DUPLICATES LIB_NAMES)
if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU)

0 comments on commit e4554bd

Please sign in to comment.