Skip to content

Commit

Permalink
allow disabling of p4 input count check (p4lang#4446)
Browse files Browse the repository at this point in the history
  • Loading branch information
grg authored Apr 3, 2024
1 parent 7da595b commit 24b0cd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/driver/p4c_src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,8 @@ def main():
string_to_pass_as___source_file = opts.json_source

if P4_input_or_inputs_specified:
assert 1 == len(opts.P4_source_files)
if checkInput:
assert 1 == len(opts.P4_source_files)
assert not JSON_input_specified
string_to_pass_as___source_file = opts.P4_source_files[0]

Expand Down

0 comments on commit 24b0cd8

Please sign in to comment.