From 8eba60d015e947ef40bababbf50366fa250ea1aa Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 27 Oct 2023 11:32:03 +0200 Subject: [PATCH] LibJS/JIT: Only try JIT compilation when LIBJS_JIT is set in environment Instead of adding a flag to everything everywhere, let's try using an environment variable this time. --- Userland/Libraries/LibJS/JIT/Compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/JIT/Compiler.cpp b/Userland/Libraries/LibJS/JIT/Compiler.cpp index 18f2b6fd4b..4e1b9aef00 100644 --- a/Userland/Libraries/LibJS/JIT/Compiler.cpp +++ b/Userland/Libraries/LibJS/JIT/Compiler.cpp @@ -820,7 +820,7 @@ void Compiler::compile_set_variable(Bytecode::Op::SetVariable const& op) OwnPtr Compiler::compile(Bytecode::Executable& bytecode_executable) { - if (getenv("LIBJS_NO_JIT")) + if (!getenv("LIBJS_JIT")) return nullptr; Compiler compiler { bytecode_executable };