Skip to content

Commit e298573

Browse files
committed
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.
1 parent 27a1baf commit e298573

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/swift_build_sdk_interfaces.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ def process_module(module_file):
271271
if module_file.name == STDLIB_NAME:
272272
command_args += ('-parse-stdlib',)
273273

274+
# FIXME: Some Python installations are unable to handle Unicode
275+
# properly. Narrow this once we figure out how to detect them.
276+
command_args += ('-diagnostic-style', 'llvm')
277+
274278
if looks_like_iosmac(interface_base):
275279
for system_framework_path in args.iosmac_system_framework_dirs:
276280
command_args += ('-Fsystem', system_framework_path)

0 commit comments

Comments
 (0)