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

APPLE: Fix for building boost 1.78 on macOS universal #2144

Closed

Conversation

creijon
Copy link
Contributor

@creijon creijon commented Jan 6, 2023

Description of Change(s)

With the latest dev push, boost has been updated to 1.78.

With this version b2 no longer requires the architecture=combined option for universal builds and throws an error if it is defined.

Fixes Issue(s)

  • Universal builds on macOS
  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

@sunyab
Copy link
Contributor

sunyab commented Jan 6, 2023

Filed as internal issue #USD-7845

Comment on lines 761 to 764
# If Python2 is also installed in the system then it is sometimes
# found first, so we force the bootstrap to Python3
bootstrapCmd += " --with-python-version=3"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this ought to only be needed if context.buildPython is enabled. I think it could also use the information returned by GetPythonInfo to specify the full version, like:

if context.buildPython:
    pythonInfo = GetPythonInfo(context)
    bootstrapCmd += " --with-python-version={ver}".format(ver=pythonInfo[3])

In theory this seems like this should be independent of macOS but I'm OK with leaving it in this block for now and just adding a comment saying something to that effect.

Copy link
Contributor Author

@creijon creijon Jan 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After testing this on the latest public release of macOS Ventura it seems that the --with-python-version=3 option isn't necessary. It only causes a problem for our internal builds. So I think I can remove it. The other change, to remove the combined option is needed with 1.78 to build universal binaries.

@creijon
Copy link
Contributor Author

creijon commented Jan 9, 2023

Sorry, I force-pushed this by accident. Will re-open under a new PR.

@creijon
Copy link
Contributor Author

creijon commented Jan 9, 2023

Re-created as #2150

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