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

Allow plugins to contribute BuiltinMacros #2

Open
owenv opened this issue Jan 28, 2025 · 1 comment
Open

Allow plugins to contribute BuiltinMacros #2

owenv opened this issue Jan 28, 2025 · 1 comment

Comments

@owenv
Copy link
Collaborator

owenv commented Jan 28, 2025

Currently, all of the builtin macros used by SwiftBuild are centralized in BuiltinMacros.swift. We should update the build settings initialization process to allow defining these in plugins as well, so that macros associated with a feature can live in the plugin which implements this feature.

@jakepetroules
Copy link
Collaborator

This might require some pretty extensive refactoring given that all of the builtin macros are statically initialized as part of the builtin macro namespace. But I think it's also one of the last major pieces of static data in the codebase, so will be really nice to get this taken care of!

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

No branches or pull requests

2 participants