4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-20 20:17:29 +08:00

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

This commit is contained in:
guozhanxin 2020-03-22 09:12:58 +08:00
parent 30a9ef64c1
commit c1b35a48a5

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')