Skip to content

Allow specifying O2PHYSICS_COMPONENTS to speedup builds#5888

Merged
ktf merged 1 commit intoalisw:masterfrom
ktf:pr5888
Sep 24, 2025
Merged

Allow specifying O2PHYSICS_COMPONENTS to speedup builds#5888
ktf merged 1 commit intoalisw:masterfrom
ktf:pr5888

Conversation

@ktf
Copy link
Member

@ktf ktf commented May 21, 2025

No description provided.

@ktf ktf requested a review from a team as a code owner May 21, 2025 09:33
@ktf
Copy link
Member Author

ktf commented May 21, 2025

@aalkin this is what we discussed, together with alisw/alibuild#927 it should allow people to only compile what they need (and rebuild in case they change their mind). We can also think of some syntactic sugar like:

alibuild build --defaults o2 O2Physics#Tutorials

which expands to correctly. In a future update we could limit what we compile in O2, however at the moment we export everything in O2Targets and then CMake complains if (say) I only try to build the framework and then O2Physics.

@ddobrigk We should probably integrate this feature for the next tutorial, so that people rebuild only a minimal part of O2Physics.

@ktf ktf force-pushed the pr5888 branch 2 times, most recently from 1accef6 to 157c3d9 Compare May 22, 2025 19:21
@ktf ktf changed the title Allow compiling only the parts you care about Allow specifying O2PHYSICS_COMPONENTS to speedup builds Sep 23, 2025
@ktf ktf merged commit b0e74af into alisw:master Sep 24, 2025
16 checks passed
singiamtel added a commit to alisw/alibuild that referenced this pull request Sep 25, 2025
The performPreferCheck function in init.py was hardcoded to always return
(1, "") which caused all track_env commands to fail during initialization.

Fixes error: "Error while executing track_env for O2PhysicsO2PHYSICS_COMPONENTS: echo
${O2PHYSICS_COMPONENTS:-install} =>"

Regression spotted in alisw/alidist#5888
ktf pushed a commit to alisw/alibuild that referenced this pull request Sep 25, 2025
The performPreferCheck function in init.py was hardcoded to always return
(1, "") which caused all track_env commands to fail during initialization.

Fixes error: "Error while executing track_env for O2PhysicsO2PHYSICS_COMPONENTS: echo
${O2PHYSICS_COMPONENTS:-install} =>"

Regression spotted in alisw/alidist#5888
Ni-Langguth pushed a commit to bitsorg/bits that referenced this pull request Nov 4, 2025
The performPreferCheck function in init.py was hardcoded to always return
(1, "") which caused all track_env commands to fail during initialization.

Fixes error: "Error while executing track_env for O2PhysicsO2PHYSICS_COMPONENTS: echo
${O2PHYSICS_COMPONENTS:-install} =>"

Regression spotted in alisw/alidist#5888
mrtineide pushed a commit to mrtineide/alidist that referenced this pull request Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants