Skip to content

Commit 8df2633

Browse files
committed
fix2?
1 parent aef3e42 commit 8df2633

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ def build_extension(self, ext):
6868
env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(env.get('CXXFLAGS', ''), self.distribution.get_version())
6969
if not os.path.exists(self.build_temp):
7070
os.makedirs(self.build_temp)
71-
cmake_args += ['-DCMAKE_OSX_ARCHITECTURES:STRING="x86_64;arm64"']
71+
72+
if platform.processor() == 'arm':
73+
cmake_args += ['-DCMAKE_OSX_ARCHITECTURES:STRING="arm64"']
7274
subprocess.check_call(['cmake'] + cmake_args + [ext.sourcedir], cwd=self.build_temp, env=env)
7375
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
7476
print() # Add an empty line for cleaner output

0 commit comments

Comments
 (0)