spack compiler info exit 1 when no compilers are found (#28493)
fixes #28492
This commit is contained in:
parent
93ebc4f47b
commit
9723d918bb
@ -120,7 +120,7 @@ def compiler_info(args):
|
|||||||
compilers = spack.compilers.compilers_for_spec(cspec, scope=args.scope)
|
compilers = spack.compilers.compilers_for_spec(cspec, scope=args.scope)
|
||||||
|
|
||||||
if not compilers:
|
if not compilers:
|
||||||
tty.error("No compilers match spec %s" % cspec)
|
tty.die("No compilers match spec %s" % cspec)
|
||||||
else:
|
else:
|
||||||
for c in compilers:
|
for c in compilers:
|
||||||
print(str(c.spec) + ":")
|
print(str(c.spec) + ":")
|
||||||
|
Loading…
Reference in New Issue
Block a user