提交 c1b35a48 编写于 作者: G guozhanxin

修复 scons --target=eclipse 时,部分带值宏出错的问题

上级 30a9ef64
......@@ -228,7 +228,7 @@ def HandleToolOption(tools, env, project, reset):
with open('rtconfig_preinc.h', mode = 'w+') as f:
f.write(file_header)
for cppdef in CPPDEFINES:
f.write("#define " + cppdef + '\n')
f.write("#define " + cppdef.replace('=', ' ') + '\n')
f.write(file_tail)
# change the c.compiler.include.files
files = option.findall('listOptionValue')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册