diff options
-rw-r--r-- | lib/spack/spack/compiler.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/compiler.py b/lib/spack/spack/compiler.py index 6fd3dd0457..3748110470 100644 --- a/lib/spack/spack/compiler.py +++ b/lib/spack/spack/compiler.py @@ -294,6 +294,10 @@ class Compiler(object): output=str, error=str)) # str for py2 return cls.parse_implicit_rpaths(output) + except spack.util.executable.ProcessError as pe: + tty.debug('ProcessError: Command exited with non-zero status: ' + + pe.long_message) + return [] finally: shutil.rmtree(tmpdir, ignore_errors=True) |