FFTW: Add SSE2 support to x86_64 target
This commit is contained in:
parent
75763bb8e3
commit
617786707f
1 changed files with 8 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue