Skip to content

Commit d1ba07a

Browse files
authored
Merge pull request #3474 from Guozhanxin/rtt_master
修复 scons --target=eclipse 时,部分带值宏出错的问题
2 parents 30a9ef6 + c1b35a4 commit d1ba07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/eclipse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def HandleToolOption(tools, env, project, reset):
228228
with open('rtconfig_preinc.h', mode = 'w+') as f:
229229
f.write(file_header)
230230
for cppdef in CPPDEFINES:
231-
f.write("#define " + cppdef + '\n')
231+
f.write("#define " + cppdef.replace('=', ' ') + '\n')
232232
f.write(file_tail)
233233
# change the c.compiler.include.files
234234
files = option.findall('listOptionValue')

0 commit comments

Comments
 (0)