lol

Patch cling/tools/driver/CMakeLists.txt, it works now!

+27 -1
+3 -1
pkgs/development/interpreters/cling/default.nix
··· 49 49 ''; 50 50 51 51 patches = [ 52 - # Applied to clang src 53 52 ./no-clang-cpp.patch 53 + 54 + # https://github.com/root-project/root/commit/286d96b12aad8688b9d8e4b3b5df843dcfb716a8 55 + ./fix-llvm-dylib-usage.patch 54 56 ]; 55 57 56 58 nativeBuildInputs = [ python3 git cmake ];
+24
pkgs/development/interpreters/cling/fix-llvm-dylib-usage.patch
··· 1 + diff --git a/tools/cling/tools/driver/CMakeLists.txt b/tools/cling/tools/driver/CMakeLists.txt 2 + --- a/tools/cling/tools/driver/CMakeLists.txt 3 + +++ b/tools/cling/tools/driver/CMakeLists.txt 4 + @@ -9,10 +9,10 @@ 5 + # Keep symbols for JIT resolution 6 + set(LLVM_NO_DEAD_STRIP 1) 7 + 8 + +set(LLVM_LINK_COMPONENTS support) 9 + + 10 + if(BUILD_SHARED_LIBS) 11 + set(LIBS 12 + - LLVMSupport 13 + - 14 + clangFrontendTool 15 + 16 + clingInterpreter 17 + @@ -25,8 +25,6 @@ if(BUILD_SHARED_LIBS) 18 + ) 19 + else() 20 + set(LIBS 21 + - LLVMSupport 22 + - 23 + clangASTMatchers 24 + clangFrontendTool