Skip to content

Commit fbec45d

Browse files
committed
Continue using the liftoff disable flag, but this time via the v8 API
Signed-off-by: Rachel Green <[email protected]>
1 parent 785835d commit fbec45d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/v8/v8.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ wasm::Engine *engine() {
4242
static wasm::own<wasm::Engine> engine;
4343

4444
std::call_once(init, []() {
45-
std::string args =
46-
absl::StrFormat("--wasm_max_mem_pages=%u", PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES /
47-
PROXY_WASM_HOST_WASM_MEMORY_PAGE_SIZE_BYTES);
45+
std::string args = absl::StrFormat("--wasm_max_mem_pages=%u --no-liftoff",
46+
PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES /
47+
PROXY_WASM_HOST_WASM_MEMORY_PAGE_SIZE_BYTES);
4848
::v8::V8::SetFlagsFromString(args.c_str(), args.size());
4949
::v8::V8::EnableWebAssemblyTrapHandler(true);
5050

0 commit comments

Comments
 (0)