Don't double build ARM64 arch on M1 Macs

PiperOrigin-RevId: 532934646
This commit is contained in:
Sebastian Schmidt 2023-05-17 15:47:36 -07:00 committed by Copybara-Service
parent a4d0e68bee
commit 1fb98f5ebd

View File

@ -357,7 +357,10 @@ class BuildExtension(build_ext.build_ext):
for ext in self.extensions: for ext in self.extensions:
target_name = self.get_ext_fullpath(ext.name) target_name = self.get_ext_fullpath(ext.name)
# Build x86 # 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) x86_name = self.get_ext_fullpath(ext.name)
# Build Arm64 # Build Arm64
ext.name = ext.name + '.arm64' ext.name = ext.name + '.arm64'