Pass the LLVM diagnostic style within swift_build_sdk_interfaces.py

Some versions of Python are unhappy with the Unicode the new diagnostic
formatter produces. For now, disable in one of the Python scripts where
we detect this.
This commit is contained in:
Doug Gregor
2024-02-19 07:47:31 -10:00
parent 27a1baf6f9
commit e298573db7

View File

@@ -271,6 +271,10 @@ def process_module(module_file):
if module_file.name == STDLIB_NAME:
command_args += ('-parse-stdlib',)
# FIXME: Some Python installations are unable to handle Unicode
# properly. Narrow this once we figure out how to detect them.
command_args += ('-diagnostic-style', 'llvm')
if looks_like_iosmac(interface_base):
for system_framework_path in args.iosmac_system_framework_dirs:
command_args += ('-Fsystem', system_framework_path)