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

fix crash on OSX due to a variable not initialized being used.

上级 3d50b2f0
......@@ -1703,6 +1703,7 @@ class GCC_compiler(object):
flags = list(flags)
compilation_ok = True
run_ok = False
try:
fd, path = tempfile.mkstemp(suffix='.c', prefix=tmp_prefix)
exe_path = path[:-2]
......@@ -1719,7 +1720,6 @@ class GCC_compiler(object):
compilation_ok = False
elif try_run:
# Try to execute the program
run_ok = False
try:
proc = call_subprocess_Popen([exe_path],
stdout=subprocess.PIPE,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论