Skip to content

Support macros as executables#6200

Merged
neonichu merged 1 commit into
mainfrom
support-macros-as-executables
Mar 1, 2023
Merged

Support macros as executables#6200
neonichu merged 1 commit into
mainfrom
support-macros-as-executables

Conversation

@neonichu

@neonichu neonichu commented Mar 1, 2023

Copy link
Copy Markdown
Contributor

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

neonichu commented Mar 1, 2023

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@tomerd tomerd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

needs test?

@neonichu

neonichu commented Mar 1, 2023

Copy link
Copy Markdown
Contributor Author

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