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

build: don't pass --target if not needed #258

Merged
merged 1 commit into from
Jul 1, 2022

Conversation

davidhewitt
Copy link
Member

Closes #229

Added a check whether the inferred target is the rust host, and if so, skip passing --target.

I did a little bit of refactoring at the same time;

  • merged private and utils into a _utils module, shuffled a couple of functions around
  • moved functions which query rustc for metadata into a new setuptools_rust.rustc_info module and added @cache decorator to all of these (as we expect rustc to give stable output)

@davidhewitt davidhewitt force-pushed the default-target branch 2 times, most recently from 52e8229 to dccb720 Compare July 1, 2022 17:56
@davidhewitt davidhewitt merged commit 3f97179 into PyO3:main Jul 1, 2022
@davidhewitt davidhewitt deleted the default-target branch July 1, 2022 19:19
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.

Allow to build without specifying a target triple
1 participant