diff options
Diffstat (limited to 'tools/cf_diff.py')
| -rw-r--r-- | tools/cf_diff.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/cf_diff.py b/tools/cf_diff.py index 70d144753..a4fb05204 100644 --- a/tools/cf_diff.py +++ b/tools/cf_diff.py | |||
| @@ -599,6 +599,8 @@ def main(argv=None): | |||
| 599 | help="also run spirv-as and spirv-val on every translation (a failure counts as a mismatch)") | 599 | help="also run spirv-as and spirv-val on every translation (a failure counts as a mismatch)") |
| 600 | ap.add_argument("--self-test", action="store_true") | 600 | ap.add_argument("--self-test", action="store_true") |
| 601 | a = ap.parse_args(argv) | 601 | a = ap.parse_args(argv) |
| 602 | if a.programs < 1: | ||
| 603 | ap.error("--programs must be at least 1") | ||
| 602 | if a.spirv_val: | 604 | if a.spirv_val: |
| 603 | missing = [t for t in ("spirv-as", "spirv-val") if not shutil.which(t)] | 605 | missing = [t for t in ("spirv-as", "spirv-val") if not shutil.which(t)] |
| 604 | if missing: | 606 | if missing: |