浏览代码

修正无法生成cbp的问题

heyuanjie 7 年之前
父节点
当前提交
4ec3552c0f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/codeblocks.py

+ 1 - 1
tools/codeblocks.py

@@ -108,7 +108,7 @@ def CBProject(target, script, program):
 
         for macro in building.Env.get('CPPDEFINES', []):
             Add = SubElement(elem, 'Add')
-            Add.set('option', "-D"+macro)
+            Add.set('option', "-D"+macro[0])
         
         # write link flags
     '''