1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
strips forced compilation flags
--- a/setup.py
+++ b/setup.py
@@ -4,27 +4,8 @@
from Cython.Build import cythonize
from setuptools import Extension, setup
-extra_compile_args = [
- "-g0",
- "-O3",
- "-ffast-math",
- "-fomit-frame-pointer",
- "-funroll-loops",
- "-fvisibility=hidden",
- "-DNDEBUG",
-]
-extra_link_args = [
- "-Wl,-O3",
- "-Wl,-s",
- "-Wl,--sort-common",
- "-Wl,-z,pack-relative-relocs",
- "-Wl,--as-needed",
- "-Wl,--exclude-libs,ALL",
-]
-if shutil.which("lld") and os.environ.get("CC") == "clang":
- extra_compile_args.append("-flto=thin")
- extra_link_args.append("-flto=thin")
- extra_link_args.append("-fuse-ld=lld")
+extra_compile_args = []
+extra_link_args = []
extensions = [
|