File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,11 @@ RUN \
178
178
git clone --depth=1 https://github.com/vgvassilev/clad.git && \
179
179
cd clad && \
180
180
mkdir build && \
181
- cd build
182
- # # cmake ../clad -DClang_DIR=${PATH_TO_LLVM_BUILD}/lib/cmake/clang/ -DLLVM_DIR=${PATH_TO_LLVM_BUILD}/lib/cmake/llvm/ -DCMAKE_INSTALL_PREFIX=/opt/conda -DLLVM_EXTERNAL_LIT="$(which lit)" && \
181
+ cd build && \
182
+ cmake .. -DClang_DIR=${PATH_TO_LLVM_BUILD}/lib/cmake/clang/ -DLLVM_DIR=${PATH_TO_LLVM_BUILD}/lib/cmake/llvm/ -DCMAKE_INSTALL_PREFIX=/opt/conda -DLLVM_EXTERNAL_LIT="$(which lit)" && \
183
183
# make -j$(nproc --all) && \
184
- # #make && \
185
- # #make install
184
+ make && \
185
+ make install && \
186
+ # install clad in all exist kernels
187
+ jq '.argv += ["-fplugin=$KERNEL_PYTHON_PREFIX/lib/clad.so"] | .display_name += " (with clad)"' $KERNEL_PYTHON_PREFIX/share/jupyter/kernels/xcpp14/kernel.json > tmp.$$.json && mv tmp.$$.json $KERNEL_PYTHON_PREFIX/share/jupyter/kernels/xcpp14/kernel.json
188
+
You can’t perform that action at this time.
0 commit comments