فهرست منبع

修复 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:
         with open('rtconfig_preinc.h', mode = 'w+') as f:
             f.write(file_header)
             f.write(file_header)
             for cppdef in CPPDEFINES:
             for cppdef in CPPDEFINES:
-                f.write("#define " + cppdef + '\n')
+                f.write("#define " + cppdef.replace('=', ' ') + '\n')
             f.write(file_tail)
             f.write(file_tail)
         #  change the c.compiler.include.files
         #  change the c.compiler.include.files
         files = option.findall('listOptionValue')
         files = option.findall('listOptionValue')