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:
parent
4d70222c71
commit
7eb4120a85
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user