-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pyoxidizer: target appropriate Apple SDK when compiling custom config.c
Before this commit, our invocation of the cc crate would likely pick up the default Apple SDK. This would work most of the time. However, during scenarios like cross-compiling, it may not work. For example, if the default SDK is a 10.15 SDK and we are compiling for aarch64, which is only supported by the 11.0 SDK. In this case, you'd get a compiler error about the supported target not being supported. Even if things did work, building of the final binary would trigger full Apple SDK checks and this would reveal an error. This commit teaches the config.c compiling to use the same logic as the Rust project / final binary building code for finding and validating the Apple SDK. It should enable errors to be detected sooner. It should also hopefully prevent hard-to-debug compiler errors from occurring, instead presenting an actionable error about the Apple SDK.
- Loading branch information
Showing
6 changed files
with
49 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters