From cdf1ba05588245ed3b1a17775f8b6442a796155a Mon Sep 17 00:00:00 2001 From: Kai <450507+neko-kai@users.noreply.github.com> Date: Wed, 28 Feb 2024 16:30:31 +0000 Subject: [PATCH] Add more Scala 3 scalacOptions --- sbtgen/src/main/scala/izumi/sbtgen/Defaults.scala | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sbtgen/src/main/scala/izumi/sbtgen/Defaults.scala b/sbtgen/src/main/scala/izumi/sbtgen/Defaults.scala index 4b22930..1fd72cc 100644 --- a/sbtgen/src/main/scala/izumi/sbtgen/Defaults.scala +++ b/sbtgen/src/main/scala/izumi/sbtgen/Defaults.scala @@ -197,8 +197,17 @@ object Defaults { "-release:8", // Target JDK8 "-Ykind-projector:underscores", // Use underscore type-lambda syntax by default - "-no-indent", + + "-Yretain-trees", // retain trees for macros + + "-no-indent", // disable indentation syntax "-explain", + "-explain-types", // Explain type errors in more detail. + + "-Xmax-inlines:64", // increase inline limit + + "-Wconf:msg=eta-expanded even though:silent", // disable harmful anti-SAM warning + // CRaw("""if (insideCI.value) "-Wconf:any:error" else "-Wconf:any:warning""""), // enable fatal warnings on CI )