summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorheyuanjie <[email protected]>2018-05-24 09:54:03 +0800
committerheyuanjie <[email protected]>2018-05-24 09:54:03 +0800
commit4ec3552c0f7b162d616e846914dd29cfca8a87dc (patch)
treef2a912ee9c32e7a02df4b3574ca2c5ab531a5742
parentda6f9e2dc0222839ba5fa06463d5c03490f2eeab (diff)
修正无法生成cbp的问题
-rw-r--r--tools/codeblocks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/codeblocks.py b/tools/codeblocks.py
index 7db82b49e9..6bcca474c4 100644
--- a/tools/codeblocks.py
+++ b/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
'''