We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54782d3 commit 6a99049Copy full SHA for 6a99049
1 file changed
tool/zjit_bisect.rb
@@ -82,6 +82,9 @@ def add_zjit_options cmd
82
zjit_opts = cmd.select { |arg| arg.start_with?("--zjit") }
83
run_opts_index = cmd.find_index { |arg| arg.start_with?("RUN_OPTS=") }
84
specopts_index = cmd.find_index { |arg| arg.start_with?("SPECOPTS=") }
85
+ if run_opts_index && specopts_index
86
+ raise "Expected only one of RUN_OPTS or SPECOPTS to be present in make command, but both were found"
87
+ end
88
if run_opts_index
89
run_opts = Shellwords.split(cmd[run_opts_index].delete_prefix("RUN_OPTS="))
90
run_opts.concat(zjit_opts)
0 commit comments