Skip to content

Commit 15cc174

Browse files
committed
Use Platform.includedIn for OS check
1 parent 6afc196 commit 15cc174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageDebugInfoFeature.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
import org.graalvm.compiler.debug.DebugContext;
3434
import org.graalvm.compiler.printer.GraalDebugHandlersFactory;
3535
import org.graalvm.nativeimage.ImageSingletons;
36+
import org.graalvm.nativeimage.Platform;
3637

3738
import com.oracle.graal.pointsto.util.GraalAccess;
3839
import com.oracle.graal.pointsto.util.Timer;
3940
import com.oracle.graal.pointsto.util.TimerCollection;
4041
import com.oracle.objectfile.BasicProgbitsSectionImpl;
4142
import com.oracle.objectfile.debuginfo.DebugInfoProvider;
4243
import com.oracle.objectfile.io.AssemblyBuffer;
43-
import com.oracle.svm.core.OS;
4444
import com.oracle.svm.core.SubstrateOptions;
4545
import com.oracle.svm.core.UniqueShortNameProvider;
4646
import com.oracle.svm.core.UniqueShortNameProviderDefaultImpl;
@@ -100,7 +100,7 @@ public void beforeImageWrite(BeforeImageWriteAccess access) {
100100
var objectFile = image.getObjectFile();
101101
objectFile.installDebugInfo(provider);
102102

103-
if (OS.LINUX.isCurrent() && SubstrateOptions.UseImagebuildDebugSections.getValue()) {
103+
if (Platform.includedIn(Platform.LINUX.class) && SubstrateOptions.UseImagebuildDebugSections.getValue()) {
104104
/*-
105105
* Provide imagebuild infos as special debug.svm.imagebuild.* sections
106106
* The contents of these sections can be dumped with:

0 commit comments

Comments
 (0)