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 @@ -1114,7 +1114,8 @@ object Build {
1114
1114
(Compile / scalacOptions) ++= Seq (
1115
1115
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
1116
1116
" -sourcepath" , (Compile / sourceDirectories).value.map(_.getAbsolutePath).distinct.mkString(File .pathSeparator),
1117
- " -Yexplicit-nulls" ,
1117
+ // "-Yexplicit-nulls", TODO: Enable it back
1118
+ " -Ycompile-scala2-library"
1118
1119
),
1119
1120
(Compile / doc / scalacOptions) ++= ScaladocConfigs .DefaultGenerationSettings .value.settings,
1120
1121
(Compile / packageSrc / mappings) ++= {
You can’t perform that action at this time.
0 commit comments