Skip to content

Commit

Permalink
Enable DebugCodeInfoUseSourceMappings with GraalVM >= 23.0
Browse files Browse the repository at this point in the history
Starting with GraalVM 23.0 debug info generation defaults to not using
`SourceMapping`s when building the `CompilationResultTree`. This choice
was made in order to improve build times (only when generating debug
info), but as expected it comes at the cost of less accurate
generated-code to source mapping.
  • Loading branch information
zakkak committed May 22, 2023
1 parent 0f99bf0 commit 2f34a09
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,8 @@ public NativeImageInvokerInfo build() {
* See https://github.com/quarkusio/quarkus/issues/30772 for more details.
*/
nativeImageArgs.add("-H:+TrackNodeSourcePosition");
/* See https://github.com/Karm/mandrel-integration-tests/issues/154 for more details. */
nativeImageArgs.add("-H:+DebugCodeInfoUseSourceMappings");
}

/**
Expand Down

0 comments on commit 2f34a09

Please sign in to comment.