Skip to content

[Runtimes] handle incremental builds that have non nested swiftmodules #82937

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Jul 9, 2025

Before #82571, we would generate a binary swiftmodule file at <build folder>/<module>.swiftmodule, while now in the same location we generate a directory.
Trying an incremental run on top of a build folder generated with the old logic will fail during configuration with an error similar to

CMake Error at .../Supplemental/cmake/modules/EmitSwiftInterface.cmake:21 (file):
  file failed to create directory:

    .../StringProcessing-build/_RegexParser/_RegexParser.swiftmodule

  because: File exists

To reduce churn in CI and at desk, delete such remnant from the previous logic.

Addresses rdar://155466197

Before swiftlang#82571, we would generate a binary swiftmodule file at `<build
folder>/<module>.swiftmodule`, while now in the same location we
generate a directory.
Trying an incremental run on top of a build folder generated with the
old logic will fail during configuration with an error similar to

```
CMake Error at .../Supplemental/cmake/modules/EmitSwiftInterface.cmake:21 (file):
  file failed to create directory:

    .../StringProcessing-build/_RegexParser/_RegexParser.swiftmodule

  because: File exists
```

To reduce churn in CI and at desk, delete such remnant from the previous
logic.

Addresses rdar://155466197
@edymtt
Copy link
Contributor Author

edymtt commented Jul 9, 2025

@swift-ci please smoke test

@edymtt
Copy link
Contributor Author

edymtt commented Jul 10, 2025

Merging this so that incremental builds in CI and at desk do not have a chance to fail.

@edymtt edymtt merged commit f50a0b2 into swiftlang:main Jul 10, 2025
3 checks passed
Copy link

@sbgitZZ sbgitZZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

view

Copy link

@sbgitZZ sbgitZZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

y

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.

2 participants