Browse Source

修正无法生成cbp的问题

heyuanjie 7 years ago
parent
commit
4ec3552c0f
1 changed files with 1 additions and 1 deletions
  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', []):
         for macro in building.Env.get('CPPDEFINES', []):
             Add = SubElement(elem, 'Add')
             Add = SubElement(elem, 'Add')
-            Add.set('option', "-D"+macro)
+            Add.set('option', "-D"+macro[0])
         
         
         # write link flags
         # write link flags
     '''
     '''