Skip to content

Commit 8128c4d

Browse files
cfallinguybedford
authored andcommittedNov 6, 2024·
feat: --enable-aot AOT compilation flag; no longer experimental. (#1033)
1 parent bc88fa0 commit 8128c4d

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed
 

‎integration-tests/cli/help.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test('--help should return help on stdout and zero exit code', async function (t
3232
'--engine-wasm <engine-wasm> The JS engine Wasm file path',
3333
'--module-mode [experimental] Run all sources as native modules,',
3434
'with full error stack support.',
35-
'--enable-experimental-aot Enable experimental AOT compilation for performance',
35+
'--enable-aot Enable AOT compilation for performance',
3636
'--enable-experimental-high-resolution-time-methods Enable experimental high-resolution fastly.now() method',
3737
'--enable-experimental-top-level-await Enable experimental top level await',
3838
'ARGS:',
@@ -61,7 +61,7 @@ test('-h should return help on stdout and zero exit code', async function (t) {
6161
'--engine-wasm <engine-wasm> The JS engine Wasm file path',
6262
'--module-mode [experimental] Run all sources as native modules,',
6363
'with full error stack support.',
64-
'--enable-experimental-aot Enable experimental AOT compilation for performance',
64+
'--enable-aot Enable AOT compilation for performance',
6565
'--enable-experimental-high-resolution-time-methods Enable experimental high-resolution fastly.now() method',
6666
'--enable-experimental-top-level-await Enable experimental top level await',
6767
'ARGS:',

‎integration-tests/js-compute/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const config = TOML.parse(
8585
config.name = serviceName;
8686
if (aot) {
8787
const buildArgs = config.scripts.build.split(' ');
88-
buildArgs.splice(-1, null, '--enable-experimental-aot');
88+
buildArgs.splice(-1, null, '--enable-aot');
8989
config.scripts.build = buildArgs.join(' ');
9090
}
9191
if (debugBuild) {

‎src/parseInputs.js

+8
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,15 @@ export async function parseInputs(cliInputs) {
3939
bundle = true;
4040
break;
4141
}
42+
case '--enable-aot': {
43+
enableAOT = true;
44+
break;
45+
}
4246
case '--enable-experimental-aot': {
47+
console.error(
48+
'Warning: --enable-experimental-aot flag is now --enable-aot. The old flag continues\n' +
49+
'to work for now, but please update your build invocation!',
50+
);
4351
enableAOT = true;
4452
break;
4553
}

‎src/printHelp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ OPTIONS:
1616
--engine-wasm <engine-wasm> The JS engine Wasm file path
1717
--module-mode [experimental] Run all sources as native modules,
1818
with full error stack support.
19-
--enable-experimental-aot Enable experimental AOT compilation for performance
19+
--enable-aot Enable AOT compilation for performance
2020
--enable-experimental-high-resolution-time-methods Enable experimental high-resolution fastly.now() method
2121
--enable-experimental-top-level-await Enable experimental top level await
2222

0 commit comments

Comments
 (0)
Please sign in to comment.