Rivet: syntax fixes (#22225)
This commit is contained in:
parent
24b7aff837
commit
b2ece3abba
@ -155,16 +155,15 @@ def setup_build_environment(self, env):
|
||||
fjcontrib_home = self.spec['fjcontrib'].prefix
|
||||
env.prepend_path('LD_LIBRARY_PATH', fjcontrib_home.lib)
|
||||
|
||||
@when('@3.1.2:')
|
||||
def flag_handler(self, name, flags):
|
||||
if name == 'cxxflags':
|
||||
if self.spec.satisfies('@3.1.2:') and name == 'cxxflags':
|
||||
flags.append('-faligned-new')
|
||||
return (None, None, flags)
|
||||
return (flags, None, None)
|
||||
|
||||
def configure_args(self):
|
||||
args = []
|
||||
if self.spec.variants['hepmc'] == '2':
|
||||
if self.spec.variants['hepmc'].value == '2':
|
||||
args += ['--with-hepmc=' + self.spec['hepmc'].prefix]
|
||||
else:
|
||||
args += ['--with-hepmc3=' + self.spec['hepmc'].prefix]
|
||||
|
Loading…
Reference in New Issue
Block a user