Skip to content

Commit

Permalink
AOT compilation: rename flag; no longer experimental. (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfallin authored Nov 5, 2024
1 parent bc88fa0 commit 3cd3cd7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integration-tests/cli/help.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test('--help should return help on stdout and zero exit code', async function (t
'--engine-wasm <engine-wasm> The JS engine Wasm file path',
'--module-mode [experimental] Run all sources as native modules,',
'with full error stack support.',
'--enable-experimental-aot Enable experimental AOT compilation for performance',
'--enable-aot Enable AOT compilation for performance',
'--enable-experimental-high-resolution-time-methods Enable experimental high-resolution fastly.now() method',
'--enable-experimental-top-level-await Enable experimental top level await',
'ARGS:',
Expand Down Expand Up @@ -61,7 +61,7 @@ test('-h should return help on stdout and zero exit code', async function (t) {
'--engine-wasm <engine-wasm> The JS engine Wasm file path',
'--module-mode [experimental] Run all sources as native modules,',
'with full error stack support.',
'--enable-experimental-aot Enable experimental AOT compilation for performance',
'--enable-aot Enable AOT compilation for performance',
'--enable-experimental-high-resolution-time-methods Enable experimental high-resolution fastly.now() method',
'--enable-experimental-top-level-await Enable experimental top level await',
'ARGS:',
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/js-compute/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const config = TOML.parse(
config.name = serviceName;
if (aot) {
const buildArgs = config.scripts.build.split(' ');
buildArgs.splice(-1, null, '--enable-experimental-aot');
buildArgs.splice(-1, null, '--enable-aot');
config.scripts.build = buildArgs.join(' ');
}
if (debugBuild) {
Expand Down
8 changes: 8 additions & 0 deletions src/parseInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ export async function parseInputs(cliInputs) {
bundle = true;
break;
}
case '--enable-aot': {
enableAOT = true;
break;
}
case '--enable-experimental-aot': {
console.error(
'Warning: --enable-experimental-aot flag is now --enable-aot. The old flag continues\n' +
'to work for now, but please update your build invocation!',
);
enableAOT = true;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/printHelp.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ OPTIONS:
--engine-wasm <engine-wasm> The JS engine Wasm file path
--module-mode [experimental] Run all sources as native modules,
with full error stack support.
--enable-experimental-aot Enable experimental AOT compilation for performance
--enable-aot Enable AOT compilation for performance
--enable-experimental-high-resolution-time-methods Enable experimental high-resolution fastly.now() method
--enable-experimental-top-level-await Enable experimental top level await
Expand Down

0 comments on commit 3cd3cd7

Please sign in to comment.