Skip to content

Commit

Permalink
Add right graalvm flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jvican committed Nov 28, 2020
1 parent dba1e09 commit e122cdb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ lazy val `snailgun-cli` = project
fork in test in Test := true,
libraryDependencies ++= List(Dependencies.scopt),
graalVMNativeImageOptions ++= List(
"--no-server",
"--no-fallback",
"-H:+ReportExceptionStackTraces",
// Required by GraalVM Native Image, otherwise error
"--initialize-at-build-time=scala.Function1"
"--allow-incomplete-classpath",
"--enable-all-security-services",
"-H:+PrintClassInitialization",
"-H:+ReportExceptionStackTraces",
"--report-unsupported-elements-at-runtime",
"--initialize-at-build-time=scala.Symbol,scala.Function1,scala.Function2,scala.runtime.StructuralCallSite,scala.runtime.EmptyMethodCache"
)
)

Expand Down

0 comments on commit e122cdb

Please sign in to comment.