Parcourir la source

优化cbp脚本

heyuanjie il y a 7 ans
Parent
commit
10d26fd3f8
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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[0])
+            for d in macro:
+                Add.set('option', "-D"+d)
         
         # write link flags
     '''