diff options
author | scottmg@google.com <scottmg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-04 17:22:19 +0000 |
---|---|---|
committer | scottmg@google.com <scottmg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-04 17:22:19 +0000 |
commit | 23ed434e84630ad86469ab5e13fe62c718b78848 (patch) | |
tree | cc1d0159ca40650f28adbd9f00508c2183c92e54 /build/gyp_chromium.py | |
parent | 4cddafed47db084123a3227806f1f7df71e3769e (diff) | |
download | chromium_src-23ed434e84630ad86469ab5e13fe62c718b78848.zip chromium_src-23ed434e84630ad86469ab5e13fe62c718b78848.tar.gz chromium_src-23ed434e84630ad86469ab5e13fe62c718b78848.tar.bz2 |
add wrapper to make GYP_PARALLEL=1 work for build\gyp_chromium
This is a workaround for multiprocessing on Windows. Importing in Python on
Windows doesn't search for imports that don't end in .py (and aren't
directories with an __init__.py). So, add this wrapper to avoid having
people change their command line to add a .py when running gyp_chromium.
R=dmazzoni@chromium.org
Review URL: https://codereview.chromium.org/11066021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160151 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/gyp_chromium.py')
-rw-r--r-- | build/gyp_chromium.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build/gyp_chromium.py b/build/gyp_chromium.py new file mode 100644 index 0000000..29bac98 --- /dev/null +++ b/build/gyp_chromium.py @@ -0,0 +1,9 @@ +# Copyright 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This is a workaround for multiprocessing on Windows. Importing in Python on
+# Windows doesn't search for imports that don't end in .py (and aren't
+# directories with an __init__.py). So, add this wrapper to avoid having
+# people change their command line to add a .py when running gyp_chromium.
+__import__('gyp_chromium')
|