Project

General

Profile

« Previous | Next » 

Revision 7a3a98e2

Added by k0kubun (Takashi Kokubun) about 2 years ago

YJIT: Use RbConfig.ruby instead of EnvUtil.rubybin (#8689)

Some people encounter an issue that test_yjit uses the installed Ruby
instead of the currently-running Ruby. It's fixed when they remove the
installed Ruby.

However, test_yjit should run the currently-running Ruby for testing
YJIT in subprocesses. EnvUtil is unfortunately used outside tests as
well, so for compatibility reasons, this commit only changes the
argument given to EnvUtil.invoke_ruby to always use RbConfig.ruby.

Co-authored-by: Alan Wu