@@ -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" ,
@@ -956,6 +956,9 @@ object Build {
956
956
}
957
957
}.value,
958
958
959
+ // TODO: Enable fatal warnings after 3.8 because old stdlib has different nullability.
960
+ (Compile / scalacOptions) -= " -Werror" ,
961
+
959
962
(Test / testOptions) += Tests .Argument (
960
963
TestFrameworks .JUnit ,
961
964
" --exclude-categories=dotty.BootstrappedOnlyTests" ,
@@ -1764,7 +1767,7 @@ object Build {
1764
1767
Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
1765
1768
Compile / scalacOptions += " -Yno-stdlib-patches" ,
1766
1769
Compile / scalacOptions += " -Yexplicit-nulls" ,
1767
- ( Compile / scalacOptions) ++= Seq (
1770
+ Compile / scalacOptions ++= Seq (
1768
1771
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
1769
1772
" -sourcepath" , (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File .pathSeparator),
1770
1773
),
@@ -2290,6 +2293,8 @@ object Build {
2290
2293
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
2291
2294
Compile / javacOptions ++= Seq (" --release" , Versions .minimumJVMVersion),
2292
2295
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
2296
+ // TODO: Enable fatal warnings after 3.8 because old stdlib has different nullability.
2297
+ Compile / scalacOptions -= " -Werror" ,
2293
2298
// Specify the default entry point of the compiler
2294
2299
Compile / mainClass := Some (" dotty.tools.dotc.Main" ),
2295
2300
// Add entry's to the MANIFEST
0 commit comments