Skip to content

build: add --v8-lite-mode flag

Rodrigo Muino Tomonari requested to merge github/fork/cician/master into master

This small change just exposes the V8 compilation option for Lite Mode (see https://v8.dev/blog/v8-lite) which also implies jitless (see https://v8.dev/blog/jitless) when set.

It should be useful in some niche scenarios like compiling for memory constrained platforms or those that don't allow for just in time compilation (like iOS).

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes The tests do not pass when compiling with this flag activated due to V8 not supporting webassebly in lite mode. The normal build is unaffected and the tests pass.
  • tests and/or benchmarks are included No additional tests or benchmarks added. The V8 team has an extensive overview of the lite mode.
  • documentation is changed or added I'm not sure if the flag needs to be added to documentation. It's pretty niche and other similar flags don't seem to be documented as far as I can tell.
  • commit message follows commit guidelines

Merge request reports

Loading