mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 15:12:15 +03:00
Include relevant resources for native-image generation (#262)
This commit is contained in:
parent
698a9425ab
commit
c646be4820
@ -1,4 +1,3 @@
|
||||
@{
|
||||
print: 0;
|
||||
0
|
||||
@println [@IO,0]
|
||||
}
|
@ -255,8 +255,9 @@ lazy val interpreter = (project in file("Interpreter"))
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user