File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -980,7 +980,9 @@ def main():
980980 action = "append" ,
981981 default = None ,
982982 help = "Extra directory with .bin files to benchmark (can be repeated). "
983- "Defaults to ['tmp/mainnet']; pass any --extra-dir to override." ,
983+ "Defaults to ['tmp/mainnet'] when running all benchmarks; "
984+ "pass any --extra-dir to override or to include extras with explicit "
985+ "benchmarks." ,
984986 )
985987
986988 # Analysis selectors. Default: --codegen-lines --compile-times.
@@ -1048,7 +1050,11 @@ def main():
10481050
10491051 binary = cargo_build (root )
10501052 builtin = args .benches or get_benches (binary )
1051- extra_dirs = [] if args .benches else (args .extra_dir if args .extra_dir is not None else ["tmp/mainnet" ])
1053+ extra_dirs = (
1054+ args .extra_dir
1055+ if args .extra_dir is not None
1056+ else ([] if args .benches else ["tmp/mainnet" ])
1057+ )
10521058 extra = find_extra_benches (extra_dirs , root )
10531059 benches = builtin + extra
10541060
You can’t perform that action at this time.
0 commit comments