Index: pylib/gyp/input.py |
diff --git a/pylib/gyp/input.py b/pylib/gyp/input.py |
index 74a96b6d8b8462670466f46b14055bab403acbc6..9392868d71a52f0e9efaedfd8ef6fb7e530008ec 100644 |
--- a/pylib/gyp/input.py |
+++ b/pylib/gyp/input.py |
@@ -1,4 +1,4 @@ |
-# Copyright (c) 2011 Google Inc. All rights reserved. |
+# Copyright (c) 2012 Google Inc. All rights reserved. |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
@@ -2152,6 +2152,9 @@ def ValidateActionsInTarget(target, target_dict, build_file): |
"An action must have an 'action_name' field." % |
target_name) |
inputs = action.get('inputs', []) |
+ action_command = action.get('action') |
+ if action_command and not action_command[0]: |
+ raise Exception("Empty action as command in target %s." % target_name) |
def ValidateRunAsInTarget(target, target_dict, build_file): |