diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/fftw/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/fftw/package.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/fftw/package.py b/var/spack/repos/builtin/packages/fftw/package.py index 838f6ff744..9b40d10fe0 100644 --- a/var/spack/repos/builtin/packages/fftw/package.py +++ b/var/spack/repos/builtin/packages/fftw/package.py @@ -89,14 +89,20 @@ class Fftw(Package): 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") |