vgvassilev / cling

The interactive C++ interpreter Cling
https://rawgit.com/vgvassilev/cling/master/www/index.html
Other
1.76k stars 102 forks source link

Improve cpt a few different ways #224

Closed jeaye closed 1 year ago

jeaye commented 1 year ago
  1. Add support for different cling/clang/llvm repos
  2. Add support for different branches for cling/clang/llvm
  3. Add support for allowing "dirty" builds, which is necessary for anyone trying to use cpt to develop cling without losing changes with each build
  4. Add support for -j flag to specify the number of cores to use when building; this is essential for anyone with a small tmpfs and a lot of cores, since I was filling up /tmp before each core could finish. Note that this is part of #406 and that sub task can be marked complete after merging this.

With these changes, it's now possible to do something like this:

$ ./cpt.py -j 4 \
           --create-dev-env=Debug \
           --with-workdir=./cling-build/ \
           --allow-dirty \
           --with-llvm-url="https://github.com/jeaye/llvm" \
           --with-llvm-branch="cling-patches-llvm13" \
           --with-clang-url="https://github.com/vgvassilev/clang" \
           --with-clang-branch="cling-patches-llvm13" \
           --with-cling-url="https://github.com/vgvassilev/cling" \
           --with-cling-branch="cling-patches-llvm13"
jeaye commented 1 year ago

Checking in on the interest in this. :slightly_smiling_face:

vgvassilev commented 1 year ago

@jeaye, can you bring that to https://github.com/root-project/root (interpreter/cling) this is where the development happens generally :)

jeaye commented 1 year ago

Ah, will do. :+1: