Skip to content

Commit 6a99049

Browse files
committed
ZJIT: Detect bad configuration in make command in bisect script
1 parent 54782d3 commit 6a99049

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tool/zjit_bisect.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ def add_zjit_options cmd
8282
zjit_opts = cmd.select { |arg| arg.start_with?("--zjit") }
8383
run_opts_index = cmd.find_index { |arg| arg.start_with?("RUN_OPTS=") }
8484
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
8588
if run_opts_index
8689
run_opts = Shellwords.split(cmd[run_opts_index].delete_prefix("RUN_OPTS="))
8790
run_opts.concat(zjit_opts)

0 commit comments

Comments
 (0)