Skip to content

Commit 4099f9c

Browse files
author
Bogdan Marinescu
committed
Propagated 'jobs' argument to build_lib
1 parent 2df4afd commit 4099f9c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

workspace_tools/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
notify = print_notify_verbose if options.extra_verbose_notify else None # Special notify for CI (more verbose)
215215
build_lib(lib_id, mcu, toolchain, options=options.options,
216216
notify=notify, verbose=options.verbose, clean=options.clean,
217-
macros=options.macros)
217+
macros=options.macros, jobs=options.jobs)
218218
if lib_build_res:
219219
successes.append(tt_id)
220220
else:

workspace_tools/build_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def build_library(src_paths, build_path, target, toolchain_name,
152152
toolchain.build_library(objects, bin_path, name)
153153

154154

155-
def build_lib(lib_id, target, toolchain, options=None, verbose=False, clean=False, macros=None, notify=None):
155+
def build_lib(lib_id, target, toolchain, options=None, verbose=False, clean=False, macros=None, notify=None, jobs=1):
156156
lib = Library(lib_id)
157157
if lib.is_supported(target, toolchain):
158158
# We need to combine macros from parameter list with macros from library definition
@@ -162,7 +162,7 @@ def build_lib(lib_id, target, toolchain, options=None, verbose=False, clean=Fals
162162

163163
build_library(lib.source_dir, lib.build_dir, target, toolchain,
164164
lib.dependencies, options,
165-
verbose=verbose, clean=clean, macros=MACROS, notify=notify, inc_dirs=lib.inc_dirs)
165+
verbose=verbose, clean=clean, macros=MACROS, notify=notify, inc_dirs=lib.inc_dirs, jobs=jobs)
166166
else:
167167
print 'Library "%s" is not yet supported on target %s with toolchain %s' % (lib_id, target.name, toolchain)
168168

0 commit comments

Comments
 (0)