summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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