From 4bf064e5da1bcf0797007d9fdbbf891b2c8f5c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20W=C3=B6gerer?= Date: Thu, 27 Apr 2023 18:30:10 +0200 Subject: [PATCH] [GR-45807] Dwarf debuginfo generation makes no sense when LLVM backend is used. --- .../svm/hosted/image/NativeImageDebugInfoFeature.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageDebugInfoFeature.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageDebugInfoFeature.java index c55f3c383d2d6..89e750d7b3ae4 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageDebugInfoFeature.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageDebugInfoFeature.java @@ -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