Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Allow macro to become configurable via compiler settings (similar to -Xmacro-settings in Scala 2) #146

Open
olafurpg opened this issue Oct 19, 2020 · 0 comments

Comments

@olafurpg
Copy link
Member

Currently, it's possible for blackbox Scala 2 macros to access compiler settings via -Xmacro-settings:hello-world

def impl(c: Context): c.Tree =
  c.settings // List("hello-world")

I wasn't able to find the equivalent functionality while writing a Scala 3 macro. This feature would be helpful to make the behavior of a macro configurable per-project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant