blob: a2dacb7c693587aaba99476b9a2f627d413b4f31 [file] [log] [blame] [edit]
--- llvmlite-0.34.0rc1/ffi/CMakeLists.txt.old 2020-08-05 13:33:58.000000000 -0700
+++ llvmlite-0.34.0rc1/ffi/CMakeLists.txt 2020-08-11 17:01:54.888723700 -0700
@@ -49,5 +49,9 @@
# so the "OptRemarks" library is removed from this list.
list(REMOVE_ITEM llvm_libs "OptRemarks")
+# Multiple definition error workaround
+list(REMOVE_ITEM llvm_libs "LLVM")
+list(REMOVE_ITEM llvm_libs "LTO")
+
# Link against LLVM libraries
target_link_libraries(llvmlite ${llvm_libs})