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

[Python] Add CMake for MacOS C++17 compatibility in wheel build. #5343

Merged
merged 2 commits into from
Jun 8, 2023

Conversation

mikeurbach
Copy link
Contributor

We are using C++17, and a recent addition to the Python bindings for the OM dialect relies on a C++17 feature. For this to compile with pybind11, we need to ensure we set the -mmacosx-version-min flag to at least version 10.14, which is where support for these C++17 features became available. By default, CMake was detecting an older version, so explicitly set this when building the wheel.

We are using C++17, and a recent addition to the Python bindings for
the OM dialect relies on a C++17 feature. For this to compile with
pybind11, we need to ensure we set the -mmacosx-version-min flag to at
least version 10.14, which is where support for these C++17 features
became available. By default, CMake was detecting an older version, so
explicitly set this when building the wheel.
@mikeurbach mikeurbach requested a review from rsetaluri June 8, 2023 21:59
@mikeurbach
Copy link
Contributor Author

Passing wheel build that I manually triggered on this branch here: https://github.com/llvm/circt/actions/runs/5215465013.

@mikeurbach mikeurbach merged commit 35f3589 into main Jun 8, 2023
5 checks passed
@mikeurbach mikeurbach deleted the mikeurbach/pybind11-macos-compat branch June 8, 2023 22:49
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.

None yet

2 participants