Skip to content

Commit b0e74af

Browse files
authored
Allow specifying O2PHYSICS_COMPONENTS to speedup builds (alisw#5888)
1 parent 77bb789 commit b0e74af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

o2physics.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ build_requires:
1313
- ninja
1414
- alibuild-recipe-tools
1515
source: https://github.com/AliceO2Group/O2Physics
16+
track_env:
17+
O2PHYSICS_COMPONENTS: echo ${O2PHYSICS_COMPONENTS:-install}
1618
incremental_recipe: |
17-
cmake --build . -- ${JOBS:+-j$JOBS} install
19+
cmake --build . -- ${JOBS:+-j$JOBS} ${O2PHYSICS_COMPONENTS}
1820
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
1921
---
2022
#!/bin/sh
@@ -35,7 +37,7 @@ cmake "$SOURCEDIR" "-DCMAKE_INSTALL_PREFIX=$INSTALLROOT" \
3537
${CLANG_REVISION:+-DLLVM_LINK_EXECUTABLE="$CLANG_ROOT/bin/llvm-link"} \
3638
${LIBUV_ROOT:+-DLibUV_ROOT=$LIBUV_ROOT} \
3739
${ALIBUILD_O2PHYSICS_TESTS:+-DO2PHYSICS_WARNINGS_AS_ERRORS=ON}
38-
cmake --build . -- ${JOBS+-j $JOBS} install
40+
cmake --build . -- ${JOBS+-j $JOBS} $O2PHYSICS_COMPONENTS
3941

4042
# export compile_commands.json in (taken from o2.sh)
4143
DEVEL_SOURCES="$(readlink $SOURCEDIR || echo $SOURCEDIR)"

0 commit comments

Comments
 (0)