From cd4f20d1ae5e4b51fbca30e6e50c8c09b1b92267 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbarton@users.noreply.github.com> Date: Thu, 8 Feb 2024 13:09:43 +0000 Subject: [PATCH] Define cling dir in terms of environment variable --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be9f0689..d1493114 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -204,6 +204,7 @@ jobs: cd ./cling git checkout tags/v${{ matrix.cling-version }} cd .. + CLING_DIR="$(pwd)/cling" git clone --depth=1 -b cling-llvm${{ matrix.clang-runtime }} https://github.com/root-project/llvm-project.git clang-dev else # repl @@ -217,7 +218,7 @@ jobs: cd build cmake -DLLVM_ENABLE_PROJECTS="clang;openmp" \ -DLLVM_EXTERNAL_PROJECTS=cling \ - -DLLVM_EXTERNAL_CLING_SOURCE_DIR=../../cling \ + -DLLVM_EXTERNAL_CLING_SOURCE_DIR=$CLING_DIR \ -DLLVM_TARGETS_TO_BUILD="host;NVPTX" \ -DCMAKE_BUILD_TYPE=Release \ -DLLVM_OPTIMIZED_TABLEGEN=OFF \