Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Reinecke
pypocketfft
Commits
d2529537
Commit
d2529537
authored
May 24, 2019
by
Martin Reinecke
Browse files
small tweaks
parent
278d973d
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
d2529537
...
...
@@ -13,17 +13,17 @@ class _deferred_pybind11_include(object):
include_dirs
=
[
'./'
,
_deferred_pybind11_include
(
True
),
_deferred_pybind11_include
()]
extra_compile_args
=
[]
extra_compile_args
=
[
'--std=c++11'
,
'-march=native'
,
'-O3'
]
python_module_link_args
=
[]
if
sys
.
platform
==
'darwin'
:
import
distutils.sysconfig
extra_compile_args
+=
[
'--std=c++11'
,
'--stdlib=libc++'
,
'-mmacosx-version-min=10.9'
,
'-march=native'
,
'-O3'
]
extra_compile_args
+=
[
'--stdlib=libc++'
,
'-mmacosx-version-min=10.9'
]
vars
=
distutils
.
sysconfig
.
get_config_vars
()
vars
[
'LDSHARED'
]
=
vars
[
'LDSHARED'
].
replace
(
'-bundle'
,
''
)
python_module_link_args
+=
[
'-bundle'
]
else
:
extra_compile_args
+=
[
'--std=c++11'
,
'-march=native'
,
'-O3'
,
'-Wfatal-errors'
,
'-Wno-ignored-attributes'
,
'-DPOCKETFFT_OPENMP'
,
'-fopenmp'
,
'-Wfloat-conversion'
,
'-Wsign-conversion'
,
'-Wconversion'
,
'-W'
,
'-Wall'
]
extra_compile_args
+=
[
'-DPOCKETFFT_OPENMP'
,
'-fopenmp'
,
'-Wfatal-errors'
,
'-Wfloat-conversion'
,
'-Wsign-conversion'
,
'-Wconversion'
,
'-W'
,
'-Wall'
,
'-Wstrict-aliasing=2'
,
'-Wwrite-strings'
,
'-Wredundant-decls'
,
'-Woverloaded-virtual'
,
'-Wcast-qual'
,
'-Wcast-align'
,
'-Wpointer-arith'
]
python_module_link_args
+=
[
'-march=native'
,
'-Wl,-rpath,$ORIGIN'
,
'-fopenmp'
]
# if you don't want debugging info, add "-s" to python_module_link_args
...
...
@@ -31,6 +31,7 @@ else:
def
get_extension_modules
():
return
[
Extension
(
'pypocketfft'
,
language
=
'c++'
,
sources
=
[
'pypocketfft.cc'
],
depends
=
[
'pocketfft_hdronly.h'
],
include_dirs
=
include_dirs
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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