Explorar el Código

Merge pull request #1467 from heyuanjie87/master

修正无法生成cbp的问题
Bernard Xiong hace 7 años
padre
commit
b465209164
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      tools/codeblocks.py

+ 2 - 1
tools/codeblocks.py

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