We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dbc018 commit e72caf3Copy full SHA for e72caf3
setup.py
@@ -1,4 +1,5 @@
1
import os
2
+import platform
3
import sys
4
5
from setuptools import setup
@@ -38,6 +39,9 @@
38
39
extra_compile_args.extend(["-O0", "-g", "-UNDEBUG"])
40
elif sys.platform != "win32":
41
extra_compile_args.extend(["-g0"])
42
+ if sys.platform == "darwin" and platform.machine().lower() == "arm64":
43
+ extra_compile_args.extend(["-flto=thin"])
44
+ extra_link_args.extend(["-flto=thin"])
45
46
# from https://py-free-threading.github.io/faq/#im-trying-to-build-a-library-on-windows-but-msvc-says-c-atomic-support-is-not-enabled
47
if sys.platform == "win32":
0 commit comments