@@ -241,7 +241,7 @@ object Build {
241241 " -deprecation" ,
242242 " -unchecked" ,
243243 // "-Wconf:cat=deprecation&msg=Unsafe:s", // example usage
244- // "-Werror",
244+ " -Werror" ,
245245 // "-Wunused:all",
246246 // "-rewrite", // requires -Werror:false since no rewrites are applied with errors
247247 " -encoding" , " UTF8" ,
@@ -962,6 +962,9 @@ object Build {
962962 }
963963 }.value,
964964
965+ // TODO: Enable fatal warnings after 3.8 because old stdlib has different nullability.
966+ (Compile / scalacOptions) -= " -Werror" ,
967+
965968 (Test / testOptions) += Tests .Argument (
966969 TestFrameworks .JUnit ,
967970 " --exclude-categories=dotty.BootstrappedOnlyTests" ,
@@ -1797,7 +1800,7 @@ object Build {
17971800 Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
17981801 Compile / scalacOptions += " -Yno-stdlib-patches" ,
17991802 Compile / scalacOptions += " -Yexplicit-nulls" ,
1800- ( Compile / scalacOptions) ++= Seq (
1803+ Compile / scalacOptions ++= Seq (
18011804 // Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
18021805 " -sourcepath" , (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File .pathSeparator),
18031806 ),
@@ -2342,6 +2345,8 @@ object Build {
23422345 // Make sure that the produced artifacts have the minimum JVM version in the bytecode
23432346 Compile / javacOptions ++= Seq (" --release" , Versions .minimumJVMVersion),
23442347 Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
2348+ // TODO: Enable fatal warnings after 3.8 because old stdlib has different nullability.
2349+ Compile / scalacOptions -= " -Werror" ,
23452350 // Specify the default entry point of the compiler
23462351 Compile / mainClass := Some (" dotty.tools.dotc.Main" ),
23472352 // Add entry's to the MANIFEST
0 commit comments