vdt: add missing python dependency (#31795)
* vdt: add missing python dependency * vdt: fix dependency and add explicit exe path
This commit is contained in:
parent
9d67d1e034
commit
e35b69ca57
@ -24,6 +24,8 @@ class Vdt(CMakePackage):
|
|||||||
variant('preload', default=False,
|
variant('preload', default=False,
|
||||||
description='Create in the library the symbols to preload the library')
|
description='Create in the library the symbols to preload the library')
|
||||||
|
|
||||||
|
depends_on('python', type='build')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def build_directory(self):
|
def build_directory(self):
|
||||||
d = join_path(self.stage.path, 'spack-build')
|
d = join_path(self.stage.path, 'spack-build')
|
||||||
@ -40,12 +42,14 @@ def cmake_args(self):
|
|||||||
elif spec.satisfies('target=ppc64le:'):
|
elif spec.satisfies('target=ppc64le:'):
|
||||||
disable_features.add('fma')
|
disable_features.add('fma')
|
||||||
|
|
||||||
options = []
|
args = [
|
||||||
|
self.define_from_variant('PRELOAD'),
|
||||||
|
self.define('PYTHON_EXECUTABLE', spec['python'].command),
|
||||||
|
]
|
||||||
for f in ['sse', 'avx', 'avx2', 'fma', 'neon']:
|
for f in ['sse', 'avx', 'avx2', 'fma', 'neon']:
|
||||||
options.append(self.define(
|
args.append(self.define(
|
||||||
f.upper(),
|
f.upper(),
|
||||||
f not in disable_features and f in self.spec.target
|
f not in disable_features and f in self.spec.target
|
||||||
))
|
))
|
||||||
|
|
||||||
options.append(self.define_from_variant('PRELOAD'))
|
return args
|
||||||
return options
|
|
||||||
|
Loading…
Reference in New Issue
Block a user