summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Becker <becker33.llnl.gov>2016-07-20 10:28:38 -0700
committerGregory Becker <becker33.llnl.gov>2016-07-20 10:28:38 -0700
commit26d1ddc176ac52ff76893432755de54cab3cecfc (patch)
treebf54f95b5c72108ccba67f21b1d9b21d9e6e6c4f
parent4c506b36c5e6762ce08b616fa32a6064f7766ad3 (diff)
downloadspack-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.py4
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