Skip to content

Commit

Permalink
enable -strict-image-heap if graalvm 21
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Sep 12, 2024
1 parent b98c1e2 commit b205374
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,14 @@ graalvmNative {
metadataRepository {
enabled = true
}
binaries {
all {
logger.quiet("GRAALVM_HOME: {}", System.getenv("GRAALVM_HOME"))
if (System.getenv("GRAALVM_HOME")?.contains("graal") && System.getenv("GRAALVM_HOME")?.contains("21")) {
logger.quiet("Enabling strict image heap!")
buildArgs.add("--strict-image-heap")
}
}
}
}

0 comments on commit b205374

Please sign in to comment.