How to specify scalacOptions separately for files

I would like to specify for file compiler options that are different from entire projects. To be more specific, there is some debugging that I need to enable in order to understand why macros fail in this particular file. If I change the parameters around the world, the whole project will be recompiled (and will debug), which I want to avoid.

How should I do this with sbt?

+4
source share
2 answers

It is not possible to provide special compilation options that apply only to some compilation unit files.

Macros are hard to debug. Now possible solutions:

.

+3

SBT, :

  • ,
  • ( , )
  • touch <file with macro>.scala .
  • .

(, , , ) , .

, . , , (, , ), 3 .

+2

All Articles