We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f4d91e + fdec76b commit c3b5493Copy full SHA for c3b5493
build-script.py
@@ -230,7 +230,13 @@ def generate_gyb_file(gyb_file: str) -> None:
230
# files if they haven't changed and don't trigger a rebuild.
231
gyb_files = [file for file in os.listdir(sources_dir) if file.endswith(".gyb")]
232
with ThreadPoolExecutor() as executor:
233
- executor.map(generate_gyb_file, gyb_files)
+ results = executor.map(generate_gyb_file, gyb_files)
234
+ # An exception raised in a thread managed by `ThreadPoolExecutor` only gets
235
+ # raised if its value is retrieved. Iterate over all the 'None' results to cause
236
+ # the exceptions to be propagated.
237
+ for _ in results:
238
+ pass
239
+
240
241
242
# Generate the syntax node `.swift` files from `SyntaxNodes.swift.gyb.template`.
0 commit comments