Forráskód Böngészése

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

aozima 12 éve
szülő
commit
7eb4120a85
1 módosított fájl, 1 hozzáadás és 1 törlés
  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)