aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib/jit_support.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/jit_support.rb')
-rw-r--r--test/lib/jit_support.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb
index 2ee1329e31..31f62c0a60 100644
--- a/test/lib/jit_support.rb
+++ b/test/lib/jit_support.rb
@@ -35,7 +35,8 @@ module JITSupport
]
args << '--jit-save-temps' if save_temps
args << '-e' << script
- args.unshift(env) if env
+ base_env = { 'MJIT_SEARCH_BUILD_DIR' => 'true' } # workaround to skip requiring `make install` for `make test-all`
+ args.unshift(env ? base_env.merge!(env) : base_env)
EnvUtil.invoke_ruby(args,
'', true, true, timeout: timeout,
)