@@ -238,7 +238,7 @@ object Build {
238238 " -deprecation" ,
239239 " -unchecked" ,
240240 // "-Wconf:cat=deprecation&msg=Unsafe:s", // example usage
241- // "-Werror",
241+ " -Werror" ,
242242 // "-Wunused:all",
243243 // "-rewrite", // requires -Werror:false since no rewrites are applied with errors
244244 " -encoding" , " UTF8" ,
@@ -959,6 +959,9 @@ object Build {
959959 }
960960 }.value,
961961
962+ // TODO: Enable fatal warnings after 3.8 because old stdlib has different nullability.
963+ (Compile / scalacOptions) -= " -Werror" ,
964+
962965 (Test / testOptions) += Tests .Argument (
963966 TestFrameworks .JUnit ,
964967 " --exclude-categories=dotty.BootstrappedOnlyTests" ,
@@ -1767,7 +1770,7 @@ object Build {
17671770 Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
17681771 Compile / scalacOptions += " -Yno-stdlib-patches" ,
17691772 Compile / scalacOptions += " -Yexplicit-nulls" ,
1770- ( Compile / scalacOptions) ++= Seq (
1773+ Compile / scalacOptions ++= Seq (
17711774 // Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
17721775 " -sourcepath" , (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File .pathSeparator),
17731776 ),
@@ -2293,6 +2296,8 @@ object Build {
22932296 // Make sure that the produced artifacts have the minimum JVM version in the bytecode
22942297 Compile / javacOptions ++= Seq (" --release" , Versions .minimumJVMVersion),
22952298 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" ,
22962301 // Specify the default entry point of the compiler
22972302 Compile / mainClass := Some (" dotty.tools.dotc.Main" ),
22982303 // Add entry's to the MANIFEST
0 commit comments