Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: tools/grit/grit/scons.py

Issue 7614: Run GRIT on all platforms. (Closed)
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/SConscript ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/scons.py
diff --git a/tools/grit/grit/scons.py b/tools/grit/grit/scons.py
index feea8f542dc86f7adc1151a61ef1dc358c0c2fe1..12516b07ee065d8927e99d8ecfb8c1e68d482fbe 100644
--- a/tools/grit/grit/scons.py
+++ b/tools/grit/grit/scons.py
@@ -41,7 +41,7 @@ def _Builder(target, source, env):
builder = build.RcBuilder()
# Get the CPP defines from the environment.
- for flag in env['RCFLAGS']:
+ for flag in env.get('RCFLAGS', []):
if flag.startswith('/D'):
flag = flag[2:]
name, val = build.ParseDefine(flag)
« no previous file with comments | « chrome/SConscript ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698