FFTW: Add SSE2 support to x86_64 target

This commit is contained in:
Carlos Bederián 2017-01-30 18:17:36 -03:00
parent 75763bb8e3
commit 617786707f

View file

@ -89,14 +89,20 @@ def install(self, spec, prefix):
autoreconf = which('autoreconf') autoreconf = which('autoreconf')
autoreconf('-ifv') 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() make()
if self.run_tests: if self.run_tests:
make("check") make("check")
make("install") make("install")
if '+float' in spec: if '+float' in spec:
configure('--enable-float', *options) configure('--enable-float', *(options + float_options))
make() make()
if self.run_tests: if self.run_tests:
make("check") make("check")