Skip to content

[CMake] Refactor resync script individual file copying #80106

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 2 commits into from
Mar 19, 2025

Conversation

etcwilde
Copy link
Member

This PR cleans up the individual file copies that were sitting around. I've split the logic for copying each file from copy_library_sources into a separate copy_files function. That function takes a from_prefix, to_prefix, an optional ROOT directory for sources that won't be coming from the standard library source directory (StringProcessing), and a list of files. This helps keep related files grouped together more clearly, like the Windows clang module maps, for instance.

Splitting the file copying out of the library copying. This allows us to
list a specific set of files to copy into the new stdlib build from
specific locations.
Use the new copy_files to copy specific files into the appropriate
places without needing to duplicate as much code.
@etcwilde
Copy link
Member Author

@swift-ci please smoke test

@etcwilde etcwilde merged commit adc995f into swiftlang:main Mar 19, 2025
3 checks passed
@etcwilde etcwilde deleted the ewilde/stdlib-resync-refactor branch March 19, 2025 16:18
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