Skip to content

Release mode does not include inline related optimizer options #299

Description

@max-peroch

Hello,

It doesn't seem like the options:

    "-opt-inline-from:**",
    "-opt:l:inline"

are being added when the release mode is enabled.

Those options are indeed not included here:
https://github.com/typelevel/sbt-tpolecat/blob/main/plugin/src/main/scala/io/github/davidgregory084/TpolecatPlugin.scala#L211C81-L211C101

Is it intentional?

I'm confused by how that test work https://github.com/typelevel/sbt-tpolecat/blob/main/plugin/src/sbt-test/sbt-tpolecat/scalacOptions/build.sbt#L313-L324 as it does expect those inline options to be set, right?

Apologies if I'm missing something obvious...

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions