提交 c455a8d1 authored 作者: Frederic's avatar Frederic

[CRASH] fix gh-3677 when there is no g++ compiler

上级 52909cd9
......@@ -344,7 +344,7 @@ SOMEPATH/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/system_in
res = GCC_compiler.try_compile_tmp(
test_code, tmp_prefix='try_blas_',
flags=flags, try_run=True)
if res[0] and res[1]:
if res and res[0] and res[1]:
return "-lblas"
else:
return ""
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论