summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-09-16 21:09:28 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2019-09-16 19:09:28 -0700
commitdce45aa29970af948836b5b7292bc7cfc16eef72 (patch)
tree70f1c3958dc9e3cfd748b1bd2755af37a2ef1853 /lib
parent5eac8130b3440eaf2cc26a1ccde1c2da702abb2c (diff)
downloadspack-dce45aa29970af948836b5b7292bc7cfc16eef72.tar.gz
spack-dce45aa29970af948836b5b7292bc7cfc16eef72.tar.bz2
spack-dce45aa29970af948836b5b7292bc7cfc16eef72.tar.xz
spack-dce45aa29970af948836b5b7292bc7cfc16eef72.zip
Allow build to proceed with failed compiler lib detection (#12756)
Fixes #12732 Fixes #12767 c22a145 added automatic detection and RPATHing of compiler libraries to Spack builds. However, in cases where the parsing/detection logic fails this was terminating the build. This makes the compiler library detection "best-effort" and reports an issue when the detection fails rather than terminating the build.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compiler.py4
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)