提交 090ca552 authored 作者: James Bergstra's avatar James Bergstra

extract version of g++ (which we call) rather than gcc

上级 4e80f755
...@@ -1248,7 +1248,7 @@ def std_libs(): ...@@ -1248,7 +1248,7 @@ def std_libs():
def std_lib_dirs(): def std_lib_dirs():
return std_lib_dirs_and_libs()[1] return std_lib_dirs_and_libs()[1]
p=subprocess.Popen(['gcc','-dumpversion'],stdout=subprocess.PIPE) p=subprocess.Popen(['g++','-dumpversion'],stdout=subprocess.PIPE)
p.wait() p.wait()
gcc_version_str = p.stdout.readline().strip() gcc_version_str = p.stdout.readline().strip()
del p del p
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论