summaryrefslogtreecommitdiff
blob: b3638e1bffc363bdda3fbb5a908c15b08623b45e (plain)
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
35
36
From f3acf99e65f58e2ee2f409d33f44a3abb1ba90c4 Mon Sep 17 00:00:00 2001
From: Sébastien Fabbro <bicatali@gentoo.org>
Date: Wed, 31 Aug 2016 22:19:12 +0000
Subject: [PATCH] respect user compiling flags Depending on compilers, -O3
 -funroll-loops is not the fastest.

---
 astroscrappy/utils/setup_package.py | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/astroscrappy/utils/setup_package.py b/astroscrappy/utils/setup_package.py
index 3e1fba2..c271613 100644
--- a/astroscrappy/utils/setup_package.py
+++ b/astroscrappy/utils/setup_package.py
@@ -73,16 +73,12 @@ def get_extensions():
                     sources=med_sources,
                     include_dirs=include_dirs,
                     libraries=libraries,
-                    language="c",
-                    extra_compile_args=['-g', '-O3', '-funroll-loops',
-                                        '-ffast-math'])
+                    language="c")
     ext_im = Extension(name=str("astroscrappy.utils.image_utils"),
                     sources=im_sources,
                     include_dirs=include_dirs,
                     libraries=libraries,
-                    language="c",
-                    extra_compile_args=['-g', '-O3', '-funroll-loops',
-                                        '-ffast-math'])
+                    language="c")
 
     has_openmp, outputs = check_openmp()
     if has_openmp:
-- 
2.9.3