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

Support macros as executables #6200

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Conversation

neonichu
Copy link
Contributor

@neonichu neonichu commented Mar 1, 2023

This adds support for building macros as executables (see swiftlang/swift-syntax#1359).

Right now, this requires adding a package dependency on swift-syntax and corresponding product dependencies to the macro itself which makes testing difficult, so BUILD_MACROS_AS_DYLIBS is kept as the default mode.

This adds support for building macros as executables (see swiftlang/swift-syntax#1359).

Right now, this requires adding a package dependency on swift-syntax and corresponding product dependencies to the macro itself which makes testing difficult, so `BUILD_MACROS_AS_DYLIBS` is kept as the default mode.
@neonichu neonichu requested a review from abertelrud as a code owner March 1, 2023 02:43
@neonichu neonichu self-assigned this Mar 1, 2023
@neonichu neonichu requested a review from tomerd as a code owner March 1, 2023 02:43
@neonichu
Copy link
Contributor Author

neonichu commented Mar 1, 2023

@swift-ci please smoke test

Copy link
Contributor

@tomerd tomerd left a comment

Choose a reason for hiding this comment

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

needs test?

@neonichu
Copy link
Contributor Author

neonichu commented Mar 1, 2023

needs test?

Yah, see above, testing needs swift-syntax, so either we add it to the repo in its entirety or we add a test later when the swift-syntax in the toolchain supports the compiler plugin stuff.

@neonichu neonichu merged commit c5e3965 into main Mar 1, 2023
@neonichu neonichu deleted the support-macros-as-executables branch March 1, 2023 17:50
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