diff options
author | Gregory Becker <becker33.llnl.gov> | 2016-07-20 10:28:38 -0700 |
---|---|---|
committer | Gregory Becker <becker33.llnl.gov> | 2016-07-20 10:28:38 -0700 |
commit | 26d1ddc176ac52ff76893432755de54cab3cecfc (patch) | |
tree | bf54f95b5c72108ccba67f21b1d9b21d9e6e6c4f | |
parent | 4c506b36c5e6762ce08b616fa32a6064f7766ad3 (diff) | |
download | spack-26d1ddc176ac52ff76893432755de54cab3cecfc.tar.gz spack-26d1ddc176ac52ff76893432755de54cab3cecfc.tar.bz2 spack-26d1ddc176ac52ff76893432755de54cab3cecfc.tar.xz spack-26d1ddc176ac52ff76893432755de54cab3cecfc.zip |
Improved cray_xc detection bug fix
-rw-r--r-- | lib/spack/spack/platforms/cray_xc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/platforms/cray_xc.py b/lib/spack/spack/platforms/cray_xc.py index 24aa614e86..8bc03874de 100644 --- a/lib/spack/spack/platforms/cray_xc.py +++ b/lib/spack/spack/platforms/cray_xc.py @@ -50,5 +50,7 @@ class CrayXc(Platform): text = cc_verbose('-craype-verbose', output=str, error=str, ignore_errors=True).split() if '-D__CRAYXC' in text: return True - finally: + else: + return False + except: return False |