Project

General

Profile

« Previous | Next » 

Revision eead8316

Added by dodecadaniel (Daniel Colson) 6 months ago

Prevent enabling yjit when zjit enabled (GH-13358)

ruby --yjit --zjit already warns and exits, but it was still possible
to enable both with ruby --zjit -e 'RubyVM:YJIT.enable.

This commit prevents that with a warning and an early return. (We could
also exit, but that seems a bit unfriendly once we're already running
the program.)

Co-authored-by: ywenc