spack compiler info: quick fix for failing command (#14928)
fixes #14927
This commit is contained in:
parent
c607288a7c
commit
8c05221bc6
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ def compiler_info(args):
|
|||
for flag, flag_value in iteritems(c.flags):
|
||||
print("\t\t%s = %s" % (flag, flag_value))
|
||||
if len(c.environment) != 0:
|
||||
if len(c.environment['set']) != 0:
|
||||
if len(c.environment.get('set', {})) != 0:
|
||||
print("\tenvironment:")
|
||||
print("\t set:")
|
||||
for key, value in iteritems(c.environment['set']):
|
||||
|
|
Loading…
Reference in a new issue