提交 7eb4120a 编写于 作者: wuyangyong's avatar wuyangyong

fixed bug: scons: don't throw excptions when CPPDEFINES is not defined.

上级 4d70222c
......@@ -75,7 +75,7 @@ def CBProject(target, script, program):
Add = SubElement(elem, 'Add')
Add.set('directory', path)
for macro in building.Env['CPPDEFINES']:
for macro in building.Env.get('CPPDEFINES', []):
Add = SubElement(elem, 'Add')
Add.set('option', "-D"+macro)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册