Skip to content

Commit 0b9bd99

Browse files
committed
swift-api-checker: pass down --catalyst to infer-imports.py when looking for them
1 parent 8e1e64b commit 0b9bd99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/api_checker/swift-api-checker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ def prepare_module_list(platform, file, verbose, module_filter_flags,
6868
include_fixed_clang_modules):
6969
cmd = [INFER_IMPORT_PATH, '-s', get_sdk_path(platform)]
7070
cmd.extend(module_filter_flags)
71+
if platform.startswith('iosmac'):
72+
cmd.extend(['--catalyst'])
7173
if verbose:
7274
cmd.extend(['--v'])
73-
check_call(cmd, output=file)
75+
check_call(cmd, verbose=verbose, output=file)
7476
# Always include fixed swift modules
7577
write_fixed_module(file, platform, 'swift', verbose)
7678
# Check if we need fixed clang modules

0 commit comments

Comments
 (0)