Przeglądaj źródła

修正无法生成cbp的问题

heyuanjie 7 lat temu
rodzic
commit
4ec3552c0f
1 zmienionych plików z 1 dodań i 1 usunięć
  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
     '''