Skip to content

Commit

Permalink
Gradle: Add more Graal options to work-around native image build issues
Browse files Browse the repository at this point in the history
See [1] for some background information.

[1]: oracle/graal#4265

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Feb 8, 2022
1 parent 66de71f commit f5c5b84
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ graal {
// "Error: Classes that should be initialized at run time got initialized during image building"
option("--initialize-at-build-time=org.jruby.util.RubyFileTypeDetector")

// Work-around for:
// "Unsupported method java.lang.invoke.MethodHandleNatives.setCallSiteTargetNormal() is reachable"
option("--report-unsupported-elements-at-runtime")

// Work-around for:
// "Error: Non-reducible loop requires too much duplication"
option("-H:MaxDuplicationFactor=3.0")

mainClass("org.ossreviewtoolkit.cli.OrtMainKt")
outputName("ort")
}
Expand Down

0 comments on commit f5c5b84

Please sign in to comment.