Don't double build ARM64 arch on M1 Macs
PiperOrigin-RevId: 532934646
This commit is contained in:
parent
a4d0e68bee
commit
1fb98f5ebd
5
setup.py
5
setup.py
|
@ -357,7 +357,10 @@ class BuildExtension(build_ext.build_ext):
|
|||
for ext in self.extensions:
|
||||
target_name = self.get_ext_fullpath(ext.name)
|
||||
# Build x86
|
||||
self._build_binary(ext)
|
||||
self._build_binary(
|
||||
ext,
|
||||
['--cpu=darwin', '--ios_multi_cpus=i386,x86_64,armv7,arm64'],
|
||||
)
|
||||
x86_name = self.get_ext_fullpath(ext.name)
|
||||
# Build Arm64
|
||||
ext.name = ext.name + '.arm64'
|
||||
|
|
Loading…
Reference in New Issue
Block a user