Merge pull request #3474 from Guozhanxin/rtt_master

修复 scons --target=eclipse 时,部分带值宏出错的问题
This commit is contained in:
Bernard Xiong authored and GitHub committed 2020-03-22 21:23:39 +08:00
commit d1ba07a47b
1 file changed
+1 -1
+1 -1
View File
@@ -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')