From 999f708f2a20ac231c00a175010850d9065a84a4 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Tue, 1 Oct 2024 21:39:00 +0200 Subject: [PATCH] Add constant for riscv64 architecture in Platform class Part of https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/issues/2310 --- .../org.eclipse.core.runtime/META-INF/MANIFEST.MF | 2 +- .../src/org/eclipse/core/runtime/Platform.java | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/runtime/bundles/org.eclipse.core.runtime/META-INF/MANIFEST.MF b/runtime/bundles/org.eclipse.core.runtime/META-INF/MANIFEST.MF index 69bf0d4e5b8..e23c69f6a9d 100644 --- a/runtime/bundles/org.eclipse.core.runtime/META-INF/MANIFEST.MF +++ b/runtime/bundles/org.eclipse.core.runtime/META-INF/MANIFEST.MF @@ -1,7 +1,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName -Bundle-Version: 3.31.100.qualifier +Bundle-Version: 3.32.0.qualifier Bundle-SymbolicName: org.eclipse.core.runtime; singleton:=true Bundle-Vendor: %providerName Bundle-Activator: org.eclipse.core.internal.runtime.PlatformActivator diff --git a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java index 5c8a0488b1d..3f793784670 100644 --- a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java +++ b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java @@ -409,6 +409,15 @@ public static boolean isMac() { */ public static final String ARCH_AARCH64 = "aarch64";//$NON-NLS-1$ + /** + * Constant string (value {@code aarch64} indicating the platform is running on + * an RISC-V 64bit-based architecture. + * + * @since 3.32 + * + */ + public static final String ARCH_RISCV64 = "riscv64";//$NON-NLS-1$ + /** * Constant string (value "amd64") indicating the platform is running on an * AMD64-based architecture.