Removing unsupported
variant from HDF5.
- `unsupported` shouldn't be a variant.
This commit is contained in:
parent
ad7d89b165
commit
d06ebf23d4
@ -46,7 +46,6 @@ class Hdf5(Package):
|
|||||||
|
|
||||||
variant('cxx', default=True, description='Enable C++ support')
|
variant('cxx', default=True, description='Enable C++ support')
|
||||||
variant('fortran', default=True, description='Enable Fortran support')
|
variant('fortran', default=True, description='Enable Fortran support')
|
||||||
variant('unsupported', default=True, description='Enables unsupported configuration options')
|
|
||||||
|
|
||||||
variant('mpi', default=False, description='Enable MPI support')
|
variant('mpi', default=False, description='Enable MPI support')
|
||||||
variant('szip', default=False, description='Enable szip support')
|
variant('szip', default=False, description='Enable szip support')
|
||||||
@ -74,6 +73,13 @@ def install(self, spec, prefix):
|
|||||||
self.validate(spec)
|
self.validate(spec)
|
||||||
# Handle compilation after spec validation
|
# Handle compilation after spec validation
|
||||||
extra_args = []
|
extra_args = []
|
||||||
|
|
||||||
|
# Always enable this option. This does not actually enable any
|
||||||
|
# features: it only *allows* the user to specify certain
|
||||||
|
# combinations of other arguments. Enabling it just skips a
|
||||||
|
# sanity check in configure, so this doesn't merit a variant.
|
||||||
|
extra_args.append("--enable-unsupported")
|
||||||
|
|
||||||
if '+debug' in spec:
|
if '+debug' in spec:
|
||||||
extra_args.append('--enable-debug=all')
|
extra_args.append('--enable-debug=all')
|
||||||
else:
|
else:
|
||||||
@ -84,9 +90,6 @@ def install(self, spec, prefix):
|
|||||||
else:
|
else:
|
||||||
extra_args.append('--enable-static-exec')
|
extra_args.append('--enable-static-exec')
|
||||||
|
|
||||||
if '+unsupported' in spec:
|
|
||||||
extra_args.append("--enable-unsupported")
|
|
||||||
|
|
||||||
if '+cxx' in spec:
|
if '+cxx' in spec:
|
||||||
extra_args.append('--enable-cxx')
|
extra_args.append('--enable-cxx')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user