Skip to content

Commit

Permalink
[GR-45807] Dwarf debuginfo generation makes no sense when LLVM backen…
Browse files Browse the repository at this point in the history
…d is used.
  • Loading branch information
olpaw committed Apr 27, 2023
1 parent ec1b6d3 commit 4bf064e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ class NativeImageDebugInfoFeature implements InternalFeature {

@Override
public boolean isInConfiguration(IsInConfigurationAccess access) {
return SubstrateOptions.GenerateDebugInfo.getValue() > 0 && !SubstrateOptions.UseOldDebugInfo.getValue();
boolean enabled = SubstrateOptions.GenerateDebugInfo.getValue() > 0 && !SubstrateOptions.UseOldDebugInfo.getValue();
if (enabled && SubstrateOptions.useLLVMBackend()) {
System.out.println("Warning: Debuginfo generation is currently not supported for the LLVM backend.");
return false;
}
return enabled;
}

@Override
Expand Down

0 comments on commit 4bf064e

Please sign in to comment.