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:
DaiH
2022-06-07 21:02:36 +08:00
parent f163953814
commit e3d4e67c56
+4
View File
@@ -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)