From 30412569c544dfa5f42ea07d0e2ea3d7131629ad Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Fri, 14 Feb 2025 12:56:43 +0100 Subject: [PATCH] Fix `-H:-StripDebugInfo`. --- .../src/com/oracle/svm/hosted/ProgressReporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporter.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporter.java index c7ae54cc9690..f618815ce85e 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporter.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporter.java @@ -608,7 +608,7 @@ public void printCreationEnd(int imageFileSize, int heapObjectCount, long imageH l.a(" generated in %.1fs", Utils.millisToSeconds(debugInfoTimer.getTotalTime())); } l.println(); - if (!ImageSingletons.lookup(NativeImageDebugInfoStripFeature.class).hasStrippedSuccessfully()) { + if (!(ImageSingletons.contains(NativeImageDebugInfoStripFeature.class) && ImageSingletons.lookup(NativeImageDebugInfoStripFeature.class).hasStrippedSuccessfully())) { // Only subtract if debug info is embedded in file (not stripped). otherBytes -= debugInfoSize; }