From 4ec3552c0f7b162d616e846914dd29cfca8a87dc Mon Sep 17 00:00:00 2001 From: heyuanjie <943313837@qq.com> Date: Thu, 24 May 2018 09:54:03 +0800 Subject: 修正无法生成cbp的问题 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/codeblocks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/codeblocks.py') 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 ''' -- cgit v1.3.1