Skip to content

Conversation

luispadron
Copy link
Contributor

@luispadron luispadron commented Sep 23, 2025

  • Remove incremental compilation support
  • Remove persistent worker code
  • Add dependency on abseil (bzlmod and WORKSPACE)
  • Add dependency on re2 (bzlmod and WORKSPACE)
  • Sync swift_runner code (and related util) from upstream
  • Add initial commit supporting parallel compilation

@qyang-nj
Copy link
Contributor

Just curious: what's the motivation to remove incremental compilation?

@brentleyjones
Copy link
Collaborator

It's removed in Google's upstream branch. More context / us asking for feedback: https://bazelbuild.slack.com/archives/CD3QY5C2X/p1758578665272229.

…is being used.

Unless cross-module-optimization is disabled (which we don't really support at this time), the driver in this case will create a single frontend invocation that emits both the module and performs codegen.

Cherry-pick of upstream: 29f0ec2
…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
@luispadron luispadron force-pushed the luis/4.x branch 2 times, most recently from 9eee21a to 87abef8 Compare September 26, 2025 03:44
luispadron and others added 5 commits September 25, 2025 23:54
…mization modes interact as we expect.

The tests highlight a couple cases that are currently known to be wrong so we can fix and test them without just manually building all possible combinations.

Chery-pick: f6302a2
Explicitly disable cross-module optimization in `exec` configs so that Swift tools can be built in parallel to speed up critical build paths.

Cherry-pic: d1ecc8a
Signed-off-by: Brentley Jones <github@brentleyjones.com>
…llel compilation.

In the future, we should consider whether we should more strictly control where these flags can be applied, since they don't just control optimizations but also how the driver plans its work.

Cherry-pick: ab55a12
…sed and `-wmo` is passed on the command line.

Cherry-pick: 66a6a6b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants