File tree 2 files changed +4
-3
lines changed
compiler/src/dotty/tools/backend/jvm
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class GenBCode extends Phase { self =>
109
109
result
110
110
finally
111
111
// frontendAccess and postProcessor are created lazilly, clean them up only if they were initialized
112
- if _frontendAccess ne null then
112
+ if ! ( _frontendAccess eq null ) then
113
113
frontendAccess.compilerSettings.outputDirectory match {
114
114
case jar : JarArchive =>
115
115
if (ctx.run.nn.suspendedUnits.nonEmpty)
@@ -120,7 +120,7 @@ class GenBCode extends Phase { self =>
120
120
jar.close()
121
121
case _ => ()
122
122
}
123
- if _postProcessor ne null then
123
+ if ! ( _postProcessor eq null ) then
124
124
postProcessor.classfileWriter.close()
125
125
generatedClassHandler.close()
126
126
}
Original file line number Diff line number Diff line change @@ -1110,7 +1110,8 @@ object Build {
1110
1110
(Compile / scalacOptions) ++= Seq (
1111
1111
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
1112
1112
" -sourcepath" , (Compile / sourceDirectories).value.map(_.getAbsolutePath).distinct.mkString(File .pathSeparator),
1113
- " -Yexplicit-nulls" ,
1113
+ // "-Yexplicit-nulls", TODO: Enable it back
1114
+ " -Ycompile-scala2-library"
1114
1115
),
1115
1116
(Compile / doc / scalacOptions) ++= ScaladocConfigs .DefaultGenerationSettings .value.settings,
1116
1117
(Compile / packageSrc / mappings) ++= {
You can’t perform that action at this time.
0 commit comments