summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/extra/debian/gn/parallel.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/extra/debian/gn/parallel.patch')
-rw-r--r--www/chromium-uc/patches/extra/debian/gn/parallel.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/www/chromium-uc/patches/extra/debian/gn/parallel.patch b/www/chromium-uc/patches/extra/debian/gn/parallel.patch
deleted file mode 100644
index ac0a2b0..0000000
--- a/www/chromium-uc/patches/extra/debian/gn/parallel.patch
+++ /dev/null
@@ -1,28 +0,0 @@
1description: respect specified number of parallel jobs while bootstrapping gn
2author: Michael Gilbert <mgilbert@debian.org>
3
4--- tools/gn/bootstrap/bootstrap.py.orig
5+++ tools/gn/bootstrap/bootstrap.py
6@@ -47,6 +47,7 @@ def main(argv):
7 help='The directory in which to build gn, '
8 'relative to the src directory. (eg. out/Release)')
9 parser.add_option('-v', '--verbose', help='ignored')
10+ parser.add_option('-j', '--jobs', help='Number of jobs')
11 parser.add_option(
12 '--skip-generate-buildfiles',
13 action='store_true',
14@@ -121,8 +122,12 @@ def main(argv):
15
16 shutil.copy2(
17 os.path.join(BOOTSTRAP_DIR, 'last_commit_position.h'), gn_build_dir)
18- subprocess.check_call(
19- [ninja_binary, '-C', gn_build_dir, '-w', 'dupbuild=err', 'gn'])
20+ if options.jobs:
21+ subprocess.check_call(
22+ [ninja_binary, '-C', gn_build_dir, '-w', 'dupbuild=err', '-j'+str(options.jobs), 'gn'])
23+ else:
24+ subprocess.check_call(
25+ [ninja_binary, '-C', gn_build_dir, '-w', 'dupbuild=err', 'gn'])
26 shutil.copy2(os.path.join(gn_build_dir, 'gn'), gn_path)
27
28 if not options.skip_generate_buildfiles: