mirror of
https://github.com/openharmony/ark_ts2abc.git
synced 2026-07-01 23:44:00 -04:00
!293 Modificationg of adaptive building option for cjs
Merge pull request !293 from DaiHN/cjs
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