diff --git a/sdk/src/org.graalvm.nativeimage/src/META-INF/services/org.graalvm.nativeimage.Platform b/sdk/src/org.graalvm.nativeimage/src/META-INF/services/org.graalvm.nativeimage.Platform index e5884d623cac..8fcb6fc92d11 100644 --- a/sdk/src/org.graalvm.nativeimage/src/META-INF/services/org.graalvm.nativeimage.Platform +++ b/sdk/src/org.graalvm.nativeimage/src/META-INF/services/org.graalvm.nativeimage.Platform @@ -1,4 +1,5 @@ org.graalvm.nativeimage.Platform$LINUX_AMD64 +org.graalvm.nativeimage.Platform$LINUX_I386 org.graalvm.nativeimage.Platform$LINUX_AARCH64 org.graalvm.nativeimage.Platform$ANDROID_AARCH64 org.graalvm.nativeimage.Platform$DARWIN_AMD64 diff --git a/sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/Platform.java b/sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/Platform.java index 0d8bec96bd1d..1bbbb2417439 100644 --- a/sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/Platform.java +++ b/sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/Platform.java @@ -129,6 +129,19 @@ default String getArchitecture() { } } + /** + * Supported architecture: i386 32-bit. + */ + interface I386 extends Platform { + + /** + * Returns string representing I386 architecture. + */ + default String getArchitecture() { + return "i386"; + } + } + /** * Supported architecture: ARMv8 64-bit. * @@ -254,6 +267,19 @@ public LINUX_AMD64() { } + /** + * Supported leaf platform: Linux on x86 32-bit. + */ + class LINUX_I386 implements LINUX, I386 { + + /** + * Instantiates a marker instance of this platform. + */ + public LINUX_I386() { + } + + } + /** * Supported leaf platform: Linux on AArch64 64-bit. *