Revert to manual flag enabling, due to RegCM bug in configure. (#10863)

The configure of RegCM treats --disable-FEATURE as --enable-FEATURE,
so we cannot use enable_or_disable.
This commit is contained in:
Alberto Chiusole 2019-03-13 01:48:45 +01:00 committed by Adam J. Stewart
parent dc5b16a8e9
commit 46fb6ed5b6

View File

@ -97,10 +97,13 @@ def configure_args(self):
raise InstallError('The GCC compiler does not support '
'multiple architecture optimizations.')
args += self.enable_or_disable('extension')
# RegCM configure script treats --disable-X as --enable-X, so we
# cannot use enable_or_disable; enable only the flags requested.
args += ('--enable-' + ext for ext in optimizations)
for opt in ('debug', 'profile', 'singleprecision'):
args += self.enable_or_disable(opt)
if ('+' + opt) in self.spec:
args.append('--enable-' + opt)
# RegCM SVN6916 introduced a specific flag to use some pnetcdf calls.
if '+pnetcdf' in self.spec and '@4.7.0-SVN6916:' in self.spec: