Commit 3c4ebf68 authored by Martin Reinecke's avatar Martin Reinecke

fixes

parent 1c870af1
......@@ -18,10 +18,10 @@ 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', '-Wfatal-errors', '-Wno-ignored-attributes', '-DPOCKETFFT_OPENMP', '-fopenmp']
extra_compile_args += ['--std=c++11', '--stdlib=libc++', '-mmacosx-version-min=10.9', '-march=native', '-O3']
vars = distutils.sysconfig.get_config_vars()
vars['LDSHARED'] = vars['LDSHARED'].replace('-bundle', '')
python_module_link_args+=['-bundle', '-fopenmp']
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']
python_module_link_args += ['-march=native', '-Wl,-rpath,$ORIGIN', '-fopenmp']
......@@ -32,6 +32,7 @@ else:
def get_extension_modules():
return [Extension('pypocketfft',
sources=['pypocketfft.cc'],
depends=['pocketfft_hdronly.h'],
include_dirs=include_dirs,
extra_compile_args=extra_compile_args,
extra_link_args=python_module_link_args)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment