Merge pull request #3474 from Guozhanxin/rtt_master

修复 scons --target=eclipse 时,部分带值宏出错的问题
This commit is contained in:
Bernard Xiong 2020-03-22 21:23:39 +08:00 committed by GitHub
commit d1ba07a47b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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