Skip to content

Commit df1b3c9

Browse files
nkcsgexiDavide Italiano
authored and
Davide Italiano
committed
scale-test: teach the test driver to test parse only.
1 parent 2580263 commit df1b3c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/scale-test

+5
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ def run_once_with_primary(args, ast, rng, primary_idx):
109109
mode = "-c"
110110
if args.typecheck:
111111
mode = "-typecheck"
112+
if args.parse:
113+
mode = "-parse"
112114

113115
focus = ["-primary-file", primary]
114116
if args.whole_module_optimization:
@@ -716,6 +718,9 @@ def main():
716718
'--exponential-threshold', type=float,
717719
default=1.2,
718720
help='minimum base for exponential fit to consider "bad scaling"')
721+
parser.add_argument(
722+
'-parse', '--parse', action='store_true',
723+
default=False, help='only run compiler with -parse')
719724
parser.add_argument(
720725
'-typecheck', '--typecheck', action='store_true',
721726
default=False, help='only run compiler with -typecheck')

0 commit comments

Comments
 (0)