Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap: Always use environment variables for build #2546

Merged
merged 2 commits into from
Nov 4, 2023

Conversation

ndevenish
Copy link
Member

This fixes a case where libtbx failed to configure with conda compilers on MacOS 14 (Sonoma). Since the build system doesn't attempt to work out what fundamental flags are needed to do basic compiler checks itself, defer this decision to the configured environment directly.

In most cases using DIALS bootstrap, this will end up being just the flags from the configured conda environment.

This also has the side-effect of better aligning the built DIALS objects between CMake and the libtbx SCons variant builds.

Fixes #2532.

This fixes a case where libtbx failed to configure with conda compilers on
MacOS 14 (Sonoma). Since the build system doesn't attempt to work out what
fundamental flags are needed to do basic compiler checks itself, defer this
decision to the configured environment directly.

In most cases using DIALS bootstrap, this will end up being just the flags
from the configured conda environment.

This also has the side-effect of better aligning the built DIALS objects
between CMake and the libtbx SCons variant builds.

Fixes #2532.
@ndevenish
Copy link
Member Author

This could potentially cause problems if users have so thoroughly misconfigured systems that even after loading the conda environment builds are broken.

I think we'll only be able to validate this by releasing into the wild.

Copy link

codecov bot commented Nov 4, 2023

Codecov Report

Merging #2546 (0ed0ecc) into main (af5c0b3) will decrease coverage by 0.04%.
The diff coverage is n/a.

❗ Current head 0ed0ecc differs from pull request most recent head 180fe35. Consider uploading reports for the commit 180fe35 to get more accurate results

@@            Coverage Diff             @@
##             main    #2546      +/-   ##
==========================================
- Coverage   78.83%   78.79%   -0.04%     
==========================================
  Files         609      609              
  Lines       74659    74659              
  Branches    10623    10623              
==========================================
- Hits        58856    58831      -25     
- Misses      13625    13651      +26     
+ Partials     2178     2177       -1     

@ndevenish ndevenish merged commit 2640d4e into main Nov 4, 2023
15 of 18 checks passed
@ndevenish ndevenish deleted the fix_cctbx_config branch November 4, 2023 14:25
graeme-winter pushed a commit to graeme-winter/dials that referenced this pull request Nov 30, 2023
This fixes a case where libtbx failed to configure with conda compilers on
MacOS 14 (Sonoma). Since the build system doesn't attempt to work out what
fundamental flags are needed to do basic compiler checks itself, defer this
decision to the configured environment directly.

In most cases using DIALS bootstrap, this will end up being just the flags
from the configured conda environment.

This also has the side-effect of better aligning the built DIALS objects
between CMake and the libtbx SCons variant builds.

Fixes dials#2532.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Developer bootstrap.py install fails on MacOS Sonoma
2 participants