diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-08-07 15:03:17 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-08-07 15:03:17 +0400 |
commit | e49429ebd2fe0b7c24e2ee533311dd97f6febd1f (patch) | |
tree | d958c7f24638bc13ce3f17211e914828bad2fc85 /deps/uv/gyp_uv.py | |
parent | aa3b4b4d106415b3afbc31df0db2476a04c997f1 (diff) | |
download | android-node-v8-e49429ebd2fe0b7c24e2ee533311dd97f6febd1f.tar.gz android-node-v8-e49429ebd2fe0b7c24e2ee533311dd97f6febd1f.tar.bz2 android-node-v8-e49429ebd2fe0b7c24e2ee533311dd97f6febd1f.zip |
deps: update libuv to v0.11.28
Diffstat (limited to 'deps/uv/gyp_uv.py')
-rwxr-xr-x | deps/uv/gyp_uv.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/uv/gyp_uv.py b/deps/uv/gyp_uv.py index f0c59d0786..f5afc6da2d 100755 --- a/deps/uv/gyp_uv.py +++ b/deps/uv/gyp_uv.py @@ -6,6 +6,13 @@ import os import subprocess import sys +try: + import multiprocessing.synchronize + gyp_parallel_support = True +except ImportError: + gyp_parallel_support = False + + CC = os.environ.get('CC', 'cc') script_dir = os.path.dirname(__file__) uv_root = os.path.normpath(script_dir) @@ -94,6 +101,11 @@ if __name__ == '__main__': if not any(a.startswith('-Dcomponent=') for a in args): args.append('-Dcomponent=static_library') + # Some platforms (OpenBSD for example) don't have multiprocessing.synchronize + # so gyp must be run with --no-parallel + if not gyp_parallel_support: + args.append('--no-parallel') + gyp_args = list(args) print gyp_args run_gyp(gyp_args) |