Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
pyHealpix
Commits
ccbe2e3c
Commit
ccbe2e3c
authored
Sep 14, 2017
by
Martin Reinecke
Browse files
better C flags
parent
406c8343
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
ccbe2e3c
...
...
@@ -71,6 +71,7 @@ def _remove_strict_prototype_option_from_distutils_config():
_remove_strict_prototype_option_from_distutils_config
()
extra_compile_args
=
[]
extra_c_compile_args
=
[]
extra_cc_compile_args
=
[]
include_dirs
=
[
'c_utils/'
,
'libfftpack/'
,
'libsharp/'
,
'cxxsupport'
,
'Healpix_cxx'
,
_deferred_pybind11_include
(),
...
...
@@ -96,9 +97,11 @@ if sys.platform == 'darwin':
else
:
extra_compile_args
+=
[
'-fopenmp'
,
'-march=native'
]
python_module_link_args
+=
[
'-fopenmp'
,
'-march=native'
]
extra_c_compile_args
.
append
(
'--std=c99'
)
extra_cc_compile_args
.
append
(
'--std=c++14'
)
python_module_link_args
.
append
(
"-Wl,-rpath,$ORIGIN"
)
extra_c_compile_args
=
extra_compile_args
+
extra_c_compile_args
extra_cc_compile_args
=
extra_compile_args
+
extra_cc_compile_args
...
...
@@ -114,7 +117,7 @@ def get_extension_modules():
sharp_library
=
Extension
(
'libsharp'
,
sources
=
sharp_sources
,
include_dirs
=
include_dirs
,
extra_compile_args
=
extra_compile_args
,
extra_compile_args
=
extra_
c_
compile_args
,
extra_link_args
=
base_library_link_args
,
libraries
=
[],
library_dirs
=
library_dirs
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment