@@ -238,7 +238,7 @@ object Build {
238
238
" -deprecation" ,
239
239
" -unchecked" ,
240
240
// "-Wconf:cat=deprecation&msg=Unsafe:s", // example usage
241
- // "-Werror",
241
+ " -Werror" ,
242
242
// "-Wunused:all",
243
243
// "-rewrite", // requires -Werror:false since no rewrites are applied with errors
244
244
" -encoding" , " UTF8" ,
@@ -959,6 +959,9 @@ object Build {
959
959
}
960
960
}.value,
961
961
962
+ // TODO: Enable fatal warnings after 3.8 because old stdlib has different nullability.
963
+ (Compile / scalacOptions) -= " -Werror" ,
964
+
962
965
(Test / testOptions) += Tests .Argument (
963
966
TestFrameworks .JUnit ,
964
967
" --exclude-categories=dotty.BootstrappedOnlyTests" ,
@@ -1767,7 +1770,7 @@ object Build {
1767
1770
Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
1768
1771
Compile / scalacOptions += " -Yno-stdlib-patches" ,
1769
1772
Compile / scalacOptions += " -Yexplicit-nulls" ,
1770
- ( Compile / scalacOptions) ++= Seq (
1773
+ Compile / scalacOptions ++= Seq (
1771
1774
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
1772
1775
" -sourcepath" , (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File .pathSeparator),
1773
1776
),
@@ -2293,6 +2296,8 @@ object Build {
2293
2296
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
2294
2297
Compile / javacOptions ++= Seq (" --release" , Versions .minimumJVMVersion),
2295
2298
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
2299
+ // TODO: Enable fatal warnings after 3.8 because old stdlib has different nullability.
2300
+ Compile / scalacOptions -= " -Werror" ,
2296
2301
// Specify the default entry point of the compiler
2297
2302
Compile / mainClass := Some (" dotty.tools.dotc.Main" ),
2298
2303
// Add entry's to the MANIFEST
0 commit comments