mirror of
https://github.com/openharmony/ark_ts2abc.git
synced 2026-07-01 23:44:00 -04:00
Modificationg of adaptive building option for cjs
--------------------------------------------------- Modificationg of adaptive building option for cjs issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5590V Signed-off-by: DaiH <daihuina1@huawei.com> Change-Id: I56b637b089250487a74ae321e70c24ba32985e40
This commit is contained in:
@@ -40,6 +40,8 @@ def parse_args():
|
||||
help='whether add debuginfo')
|
||||
parser.add_argument("--module", action='store_true',
|
||||
help='whether is module')
|
||||
parser.add_argument("--commonjs", action='store_true',
|
||||
help='whether is commonjs')
|
||||
arguments = parser.parse_args()
|
||||
return arguments
|
||||
|
||||
@@ -84,6 +86,8 @@ def gen_abc_info(input_arguments):
|
||||
cmd.insert(3, '--debug')
|
||||
if input_arguments.module:
|
||||
cmd.insert(4, '-m')
|
||||
if input_arguments.commonjs:
|
||||
cmd.insert(5, '-c')
|
||||
run_command(cmd, path)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user