diff options
| author | aozima <[email protected]> | 2013-06-16 23:05:10 +0800 |
|---|---|---|
| committer | aozima <[email protected]> | 2013-06-16 23:05:10 +0800 |
| commit | 7eb4120a8577ac28fc8fedfec9d1eb1976c60db6 (patch) | |
| tree | bf719fd0a442819c98f07b483496723480bd0bde | |
| parent | 4d70222c7137faa0e589863327eb6a376b47a1ad (diff) | |
fixed bug: scons: don't throw excptions when CPPDEFINES is not defined.
| -rw-r--r-- | tools/codeblocks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/codeblocks.py b/tools/codeblocks.py index f46f0f1f93..9a25114e97 100644 --- a/tools/codeblocks.py +++ b/tools/codeblocks.py @@ -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) |
