Skip to content

Add Real Enable/Disable Flags for Cross-Module Incremental Builds #36111

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

Merged
merged 4 commits into from
Mar 3, 2021

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Feb 23, 2021

In the legacy driver, these flags will merely be propagated to the frontends to indicate that they should disable serialization of incremental information in swift module files.

In the new driver, these flags control whether the Swift driver performs an incremental build that is aware of metadata embedded in the module.

Kudos to David for coming up with our new marketing name: Incremental Imports.

For now, I am not removing the option to provide the old experimental flag. Once we re-run the options generation script in the new driver, I will be removing it.

rdar://74363450

@CodaFi CodaFi requested a review from davidungar February 23, 2021 21:51
@CodaFi
Copy link
Contributor Author

CodaFi commented Feb 23, 2021

@swift-ci smoke test

def disable_incremental_imports :
Flag<["-"], "disable-incremental-imports">,
Flags<[FrontendOption]>,
HelpText<"Enable cross-module incremental build metadata and "
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack, thinko

@CodaFi CodaFi force-pushed the cross-over-episode branch from a9280e7 to d2be9e4 Compare February 23, 2021 21:54
Copy link
Contributor

@davidungar davidungar left a comment

Choose a reason for hiding this comment

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

Looks good. Hoping this can land simultaneously with the Swift Driver change.

@CodaFi
Copy link
Contributor Author

CodaFi commented Feb 23, 2021

@swift-ci smoke test

@CodaFi CodaFi force-pushed the cross-over-episode branch 2 times, most recently from 77633b4 to 8826ef1 Compare February 26, 2021 18:37
In the legacy driver, these flags will merely be propagated to the
frontends to indicate that they should disable serialization of
incremental information in swift module files.

In the new driver, these flags control whether the Swift driver performs
an incremental build that is aware of metadata embedded in the module.

Kudos to David for coming up with our new marketing name: Incremental
Imports.

rdar://74363450
@CodaFi CodaFi force-pushed the cross-over-episode branch from 8826ef1 to 28a37a4 Compare March 1, 2021 18:15
CodaFi added 2 commits March 1, 2021 17:26
Now that incremental imports are the default, flip the polarity in some tests.
Make sure we can effectively turn this feature off instead of on.
@CodaFi
Copy link
Contributor Author

CodaFi commented Mar 2, 2021

@swift-ci smoke test

@CodaFi CodaFi force-pushed the cross-over-episode branch from 2550df2 to 714a871 Compare March 2, 2021 05:06
@CodaFi
Copy link
Contributor Author

CodaFi commented Mar 2, 2021

@swift-ci smoke test

@CodaFi CodaFi force-pushed the cross-over-episode branch from 714a871 to d946df7 Compare March 2, 2021 20:53
@CodaFi
Copy link
Contributor Author

CodaFi commented Mar 2, 2021

@swift-ci smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Mar 3, 2021

@CodaFi CodaFi merged commit 7f79783 into swiftlang:main Mar 3, 2021
@CodaFi CodaFi deleted the cross-over-episode branch March 3, 2021 00:07
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