4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-18 19:59:13 +08:00

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

This commit is contained in:
aozima 2013-06-16 23:05:10 +08:00
parent 4d70222c71
commit 7eb4120a85

View File

@ -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)