diff --git a/src/cmd/componentize.js b/src/cmd/componentize.js index 38d453024..b17107379 100644 --- a/src/cmd/componentize.js +++ b/src/cmd/componentize.js @@ -27,6 +27,7 @@ export async function componentize(jsSource, opts) { disableFeatures: opts.disable, enableFeatures: opts.enable, preview2Adapter: opts.preview2Adapter, + debugBuild: opts.debugStarlingmonkeyBuild, }); component = result.component; } catch (err) { diff --git a/src/jco.js b/src/jco.js index 3bf212a06..846ce04c0 100755 --- a/src/jco.js +++ b/src/jco.js @@ -41,6 +41,7 @@ program.command('componentize') .addOption(new Option('-d, --disable ', 'disable WASI features').choices(['clocks', 'http', 'random', 'stdio', 'all'])) // .addOption(new Option('-e, --enable ', 'enable WASI features').choices(['http'])) .option('--preview2-adapter ', 'provide a custom preview2 adapter path') + .option('--debug-starlingmonkey-build', 'use a debug build of StarlingMonkey') .requiredOption('-o, --out ', 'output component file') .action(asyncAction(componentize));