Merge pull request #2964 from Zzzoom/fftw_add_sse2

FFTW: Add SSE2 support to x86_64 target
This commit is contained in:
Gregory Lee 2017-01-31 09:48:47 -08:00 committed by GitHub
commit 7d279e06a0

View File

@ -89,14 +89,20 @@ def install(self, spec, prefix):
autoreconf = which('autoreconf')
autoreconf('-ifv')
configure(*options)
float_options = []
double_options = []
if 'x86_64' in spec.architecture:
float_options.append('--enable-sse2')
double_options.append('--enable-sse2')
configure(*(options + double_options))
make()
if self.run_tests:
make("check")
make("install")
if '+float' in spec:
configure('--enable-float', *options)
configure('--enable-float', *(options + float_options))
make()
if self.run_tests:
make("check")