Skip to content
This repository was archived by the owner on Jun 5, 2023. It is now read-only.
This repository was 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

@olafurpg

Description

@olafurpg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions