mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 14:52:01 +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]
|
||||
}
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user