File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,14 @@ class macOSPythonBuilder : NixPythonBuilder {
42
42
$configureString += " --enable-shared"
43
43
$configureString += " --with-lto"
44
44
45
+ # ## For Python versions which support it, compile a universal2 (arm64 + x86_64 hybrid) build. The arm64 slice
46
+ # ## will never be used itself by a Github Actions runner but using a universal2 Python is the only way to build
47
+ # ## universal2 C extensions and wheels. This is supported by Python >= 3.10 and was backported to Python >=
48
+ # ## 3.9.1 and >= 3.8.10.
49
+ if ($this.Version -ge " 3.8.10" -and $this.Version -ne " 3.9.0" ) {
50
+ $configureString += " --enable-universalsdk --with-universal-archs=universal2"
51
+ }
52
+
45
53
# ## OS X 10.11, Apple no longer provides header files for the deprecated system version of OpenSSL.
46
54
# ## Solution is to install these libraries from a third-party package manager,
47
55
# ## and then add the appropriate paths for the header and library files to configure command.
You can’t perform that action at this time.
0 commit comments