mirror of https://github.com/RT-Thread/rt-thread
fixed bug: scons: don't throw excptions when CPPDEFINES is not defined.
This commit is contained in:
parent
4d70222c71
commit
7eb4120a85
|
@ -75,7 +75,7 @@ def CBProject(target, script, program):
|
||||||
Add = SubElement(elem, 'Add')
|
Add = SubElement(elem, 'Add')
|
||||||
Add.set('directory', path)
|
Add.set('directory', path)
|
||||||
|
|
||||||
for macro in building.Env['CPPDEFINES']:
|
for macro in building.Env.get('CPPDEFINES', []):
|
||||||
Add = SubElement(elem, 'Add')
|
Add = SubElement(elem, 'Add')
|
||||||
Add.set('option', "-D"+macro)
|
Add.set('option', "-D"+macro)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue