Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WIP: rules_swift 4.x base#1571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
luispadron wants to merge13 commits intomaster
base:master
Choose a base branch
Loading
fromluis/4.x
Draft
Changes from1 commit
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
afb1a68
Remove support for incremental compilation mode
luispadronSep 23, 2025
58820dd
Remove support for persistent worker
luispadronSep 23, 2025
16ac29c
Sync swift_runner code with upstream
luispadronSep 23, 2025
c970cb8
Add support for parallel compilation
luispadronSep 24, 2025
2895800
Add initial parallel compilation support: b9cb4ffb46dc0499b0eab9c780d…
luispadronSep 24, 2025
370db70
Disable parallel compilation if an optimization flag in the -O group …
luispadronSep 24, 2025
1fc74f6
Simplify how we represent single-batch codegen jobs by passing an emp…
luispadronSep 24, 2025
c317deb
Force swift.compile_in_parallel in the tests that depend on looking u…
luispadronSep 24, 2025
e88c8c8
Add tests for parallel compilation to make sure that the various opti…
luispadronSep 24, 2024
6c41191
Update parallel compilation to handle optimization correctly.
luispadronSep 26, 2024
8c164a9
Fix progress messages
brentleyjonesSep 25, 2025
399a52f
Also detect `-O` flags being set via `--swiftcopt` when planning para…
luispadronOct 10, 2024
6ab4bec
Fix another edge case in compile planning; this time if `-c opt` is u…
luispadronOct 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Simplify how we represent single-batch codegen jobs by passing an emp…
…ty string instead of the full list of object files.This reduces unnecessary processing for huge modules with hundreds of source files.Cherry-pick:c413bd3
  • Loading branch information
@luispadron
luispadron committedSep 24, 2025
commit1fc74f6cd146e5e9e4c6049f76439542a93125fd
18 changes: 14 additions & 4 deletionsswift/internal/compiling.bzl
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -841,14 +841,24 @@ def _execute_compile_plan(
)
for number, batch in enumerate(batches, 1):
object_prereqs = dict(prerequisites)
object_prereqs["compile_step"] = struct(
action = SWIFT_ACTION_COMPILE_CODEGEN,
output = ",".join([

# If there is only one batch (for small libraries, or libraries of any
# size compiled with whole-module optimization), we omit the requested
# file paths to eliminate some unneeded work in the worker. It will
# treat a blank value as "emit all outputs".
if len(batches) == 1:
step_detail = ""
else:
step_detail = ",".join([
object.path
for invocation in batch
for object in invocation.objects
]),
])
object_prereqs["compile_step"] = struct(
action = SWIFT_ACTION_COMPILE_CODEGEN,
output = step_detail,
)

batch_suffix = ""
if compile_plan.output_nature.emits_multiple_objects:
batch_suffix = " ({} of {})".format(number, len(batches))
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp