Improved cray_xc detection bug fix

This commit is contained in:
Gregory Becker 2016-07-20 10:28:38 -07:00
parent 4c506b36c5
commit 26d1ddc176

View file

@ -50,5 +50,7 @@ def detect(self):
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