Skip to content

Commit 934951a

Browse files
authored
Merge pull request #1955 from theotherjimmy/name-libs
Add -N/--artifact-name argument to parser to name libraries
2 parents 605cb86 + 6de4ea7 commit 934951a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@
129129

130130
parser.add_option("-j", "--jobs", type="int", dest="jobs",
131131
default=0, help="Number of concurrent jobs. Default: 0/auto (based on host machine's number of CPUs)")
132+
parser.add_option("-N", "--artifact-name", dest="artifact_name",
133+
default=None, help="The built project's name")
132134

133135
parser.add_option("-v", "--verbose",
134136
action="store_true",
@@ -242,7 +244,8 @@
242244
jobs=options.jobs,
243245
clean=options.clean,
244246
archive=(not options.no_archive),
245-
macros=options.macros)
247+
macros=options.macros,
248+
name=options.artifact_name)
246249
else:
247250
lib_build_res = build_mbed_libs(mcu, toolchain,
248251
options=options.options,

0 commit comments

Comments
 (0)