tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
Patch cling/tools/driver/CMakeLists.txt, it works now!
Tom McLaughlin
2 years ago
cfb12933
978e32e8
+27
-1
2 changed files
expand all
collapse all
unified
split
pkgs
development
interpreters
cling
default.nix
fix-llvm-dylib-usage.patch
+3
-1
pkgs/development/interpreters/cling/default.nix
···
49
49
'';
50
50
51
51
patches = [
52
52
-
# Applied to clang src
53
52
./no-clang-cpp.patch
53
53
+
54
54
+
# https://github.com/root-project/root/commit/286d96b12aad8688b9d8e4b3b5df843dcfb716a8
55
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
1
+
diff --git a/tools/cling/tools/driver/CMakeLists.txt b/tools/cling/tools/driver/CMakeLists.txt
2
2
+
--- a/tools/cling/tools/driver/CMakeLists.txt
3
3
+
+++ b/tools/cling/tools/driver/CMakeLists.txt
4
4
+
@@ -9,10 +9,10 @@
5
5
+
# Keep symbols for JIT resolution
6
6
+
set(LLVM_NO_DEAD_STRIP 1)
7
7
+
8
8
+
+set(LLVM_LINK_COMPONENTS support)
9
9
+
+
10
10
+
if(BUILD_SHARED_LIBS)
11
11
+
set(LIBS
12
12
+
- LLVMSupport
13
13
+
-
14
14
+
clangFrontendTool
15
15
+
16
16
+
clingInterpreter
17
17
+
@@ -25,8 +25,6 @@ if(BUILD_SHARED_LIBS)
18
18
+
)
19
19
+
else()
20
20
+
set(LIBS
21
21
+
- LLVMSupport
22
22
+
-
23
23
+
clangASTMatchers
24
24
+
clangFrontendTool