浏览代码

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

guozhanxin 5 年之前
父节点
当前提交
c1b35a48a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/eclipse.py

+ 1 - 1
tools/eclipse.py

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