summaryrefslogtreecommitdiff
path: root/tools/codeblocks.py
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-05-24 19:05:38 +0800
committerGitHub <[email protected]>2018-05-24 19:05:38 +0800
commitb465209164f7ba6672b05d5672464f6315f05cc3 (patch)
tree5c740ca8a1343fef1784072a745d2c5754279ddf /tools/codeblocks.py
parentb030e6773d9dd3bdb84932c4d7b63a619252295d (diff)
parent10d26fd3f839bc419605f3bb2ddb0e86af8179d1 (diff)
Merge pull request #1467 from heyuanjie87/master
修正无法生成cbp的问题
Diffstat (limited to 'tools/codeblocks.py')
-rw-r--r--tools/codeblocks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/codeblocks.py b/tools/codeblocks.py
index 7db82b49e9..c45a5dca91 100644
--- a/tools/codeblocks.py
+++ b/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
'''