From e49429ebd2fe0b7c24e2ee533311dd97f6febd1f Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Thu, 7 Aug 2014 15:03:17 +0400 Subject: deps: update libuv to v0.11.28 --- deps/uv/gyp_uv.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'deps/uv/gyp_uv.py') 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) -- cgit v1.2.3