Skip to content

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Aug 17, 2022

This PR contains two changes:

  • Refactor the portions of ModuleInterfaceLoaderImpl that check if a given binary Swift module is up-to-date by verifying all of its serialized files dependency timestamps into a separate implementation helper class - UpToDateModuleChecker, so that it can be used by other clients.
  • Adopt UpToDateModuleChecker in the explicit interface build code-path to early exit when the .swiftinterface -> .swiftmodule build action is not needed because the expected output is already up-to-date.
    • Add a remark emitted when -Rskip-explicit-interface-build is specified and the above early exit is taken.

… 'ModuleInterfaceLoaderImpl' logic, to be used by other clients
@artemcm
Copy link
Contributor Author

artemcm commented Aug 17, 2022

@swift-ci test

@artemcm artemcm force-pushed the SeparateUpToDateCheck branch from 16844eb to 256c0ff Compare August 17, 2022 01:31
@artemcm
Copy link
Contributor Author

artemcm commented Aug 17, 2022

@swift-ci test

@artemcm artemcm marked this pull request as ready for review August 17, 2022 16:29
@artemcm artemcm requested review from xymus, nkcsgexi and tshortli August 17, 2022 16:29
Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

Seems a reasonable change to me!

@artemcm artemcm merged commit 19831be into swiftlang:main Aug 23, 2022
@artemcm artemcm deleted the SeparateUpToDateCheck branch August 23, 2022 17:24
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