mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Add --build-type to tools/build.py (#4409)
This allows users to specify a build type other than `MinSizeRel` or `Debug` for `tools/build.py`. (Build type was already freely configurable by invoking cmake directly with a custom `CMAKE_BUILD_TYPE` option.) JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
parent
29785b2af3
commit
4350401b5b
@ -63,8 +63,10 @@ def get_arguments():
|
||||
help='add custom argument to CMake')
|
||||
buildgrp.add_argument('--compile-flag', metavar='OPT', action='append', default=[],
|
||||
help='add custom compile flag')
|
||||
buildgrp.add_argument('--debug', action='store_const', const='Debug', dest='build_type',
|
||||
default='MinSizeRel', help='debug build')
|
||||
buildgrp.add_argument('--build-type', metavar='TYPE', default='MinSizeRel',
|
||||
help='set build type (default: %(default)s)')
|
||||
buildgrp.add_argument('--debug', dest='build_type', action='store_const', const='Debug', default=argparse.SUPPRESS,
|
||||
help='debug build (alias for --build-type %(const)s)')
|
||||
buildgrp.add_argument('--install', metavar='DIR', nargs='?', default=None, const=False,
|
||||
help='install after build (default: don\'t install; '
|
||||
'default directory if install: OS-specific)')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user