File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 5
5
- Add support for ` kebab-case ` executable names. [ #205 ] ( https://github.com/PyO3/setuptools-rust/pull/205 )
6
6
- Add support for custom cargo profiles. [ #216 ] ( https://github.com/PyO3/setuptools-rust/pull/216 )
7
7
8
+ ### Fixed
9
+ - Fix building macOS arm64 wheel with cibuildwheel. [ #217 ] ( https://github.com/PyO3/setuptools-rust/pull/217 )
10
+
8
11
## 1.1.2 (2021-12-05)
9
12
### Changed
10
13
- Removed dependency on ` tomli ` to simplify installation. [ #200 ] ( https://github.com/PyO3/setuptools-rust/pull/200 )
Original file line number Diff line number Diff line change @@ -92,6 +92,12 @@ def run_for_extension(self, ext: RustExtension) -> None:
92
92
universal2 = False
93
93
if self .plat_name .startswith ("macosx-" ) and arch_flags :
94
94
universal2 = "x86_64" in arch_flags and "arm64" in arch_flags
95
+ if not universal2 and not self .target :
96
+ if "arm64" in arch_flags :
97
+ self .target = "aarch64-apple-darwin"
98
+ elif "x86_64" in arch_flags :
99
+ self .target = "x86_64-apple-darwin"
100
+
95
101
if universal2 :
96
102
arm64_dylib_paths = self .build_extension (ext , "aarch64-apple-darwin" )
97
103
x86_64_dylib_paths = self .build_extension (ext , "x86_64-apple-darwin" )
You can’t perform that action at this time.
0 commit comments