Quellcode durchsuchen

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

aozima vor 12 Jahren
Ursprung
Commit
7eb4120a85
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      tools/codeblocks.py

+ 1 - 1
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)