diff --git a/Pkg/src/main/resources/Main.enso b/Pkg/src/main/resources/Main.enso index 80fcd2bfd2d..6c8c70122b4 100644 --- a/Pkg/src/main/resources/Main.enso +++ b/Pkg/src/main/resources/Main.enso @@ -1,4 +1,3 @@ @{ - print: 0; - 0 + @println [@IO,0] } \ No newline at end of file diff --git a/build.sbt b/build.sbt index 91b39527f0e..cb60c47d5f5 100644 --- a/build.sbt +++ b/build.sbt @@ -252,11 +252,12 @@ lazy val interpreter = (project in file("Interpreter")) .settings( buildNativeImage := Def .task { - val javaHome = System.getProperty("java.home") - val nativeImagePath = s"$javaHome/bin/native-image" - val classPath = (Runtime / fullClasspath).value.files.mkString(":") + val javaHome = System.getProperty("java.home") + val nativeImagePath = s"$javaHome/bin/native-image" + val classPath = (Runtime / fullClasspath).value.files.mkString(":") + val resourcesGlobOpt = "-H:IncludeResources=.*Main.enso$" val cmd = - s"$nativeImagePath --macro:truffle --no-fallback --initialize-at-build-time -cp $classPath ${(Compile / mainClass).value.get} enso" + s"$nativeImagePath $resourcesGlobOpt --macro:truffle --no-fallback --initialize-at-build-time -cp $classPath ${(Compile / mainClass).value.get} enso" cmd ! } .dependsOn(Compile / compile)