Skip to content
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

[5.9] Run build tool plugins for C-family targets #6540

Merged

Conversation

neonichu
Copy link
Contributor

While we intentionally don't support generating C sources from plugins today since we haven't figured out how to deal with headers etc, not running plugins at all without any diagnostics whatsoever seems like an implementation oversight based on the fact that we have two completely different implementations for Swift and C-family targets (which is something we also need to rectify at some point).

With this change, we're running build-tool plugins in the exact same way as we are doing it for Swift targets. We are only doing this for packages with tools-version 5.9 or higher in order to have any unintentional impact on existing packages.

rdar://101671614

Co-authored-by: Max Desiatov [email protected]

(cherry picked from commit 678e683)

@neonichu neonichu added the swift 5.9 This PR targets the 5.9 branch label May 11, 2023
@neonichu neonichu requested a review from abertelrud as a code owner May 11, 2023 00:05
@neonichu neonichu self-assigned this May 11, 2023
@neonichu neonichu requested a review from tomerd as a code owner May 11, 2023 00:05
@neonichu
Copy link
Contributor Author

@swift-ci please smoke test

@tomerd tomerd changed the title Run build tool plugins for C-family targets [5.9] Run build tool plugins for C-family targets May 11, 2023
@neonichu neonichu force-pushed the run-build-tool-plugins-for-c-family-targets-5.9 branch from c410c4f to 2a48ba4 Compare May 11, 2023 01:00
@neonichu
Copy link
Contributor Author

@swift-ci please smoke test

@neonichu
Copy link
Contributor Author

@swift-ci please smoke test windows

While we intentionally don't support generating C sources from plugins today since we haven't figured out how to deal with headers etc, not running plugins at all without any diagnostics whatsoever seems like an implementation oversight based on the fact that we have two completely different implementations for Swift and C-family targets (which is something we also need to rectify at some point).

With this change, we're running build-tool plugins in the exact same way as we are doing it for Swift targets. We are only doing this for packages with tools-version 5.9 or higher in order to have any unintentional impact on existing packages.

rdar://101671614

Co-authored-by: Max Desiatov <[email protected]>

(cherry picked from commit 678e683)
@neonichu neonichu force-pushed the run-build-tool-plugins-for-c-family-targets-5.9 branch from 2a48ba4 to 89830ec Compare May 11, 2023 17:42
@neonichu
Copy link
Contributor Author

@swift-ci please smoke test

@neonichu
Copy link
Contributor Author

@swift-ci please smoke test windows

@neonichu neonichu merged commit 5016527 into release/5.9 May 11, 2023
@neonichu neonichu deleted the run-build-tool-plugins-for-c-family-targets-5.9 branch May 11, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift 5.9 This PR targets the 5.9 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants