3 Star 0 Fork 6

src-openEuler/presto

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
presto-support-aarch64-platform.patch 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
herengui 提交于 2021-08-24 18:45 . update version, support aarch64
From 2a268646540458435580c1881091512f4e4cdfe3 Mon Sep 17 00:00:00 2001
From: herengui <herengui@uniontech.com>
Date: Tue, 24 Aug 2021 10:30:29 +0800
Subject: [PATCH] presto support aarch64 platform
Signed-off-by: herengui <herengui@uniontech.com>
---
.../facebook/presto/server/PrestoSystemRequirements.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/presto-main/src/main/java/com/facebook/presto/server/PrestoSystemRequirements.java b/presto-main/src/main/java/com/facebook/presto/server/PrestoSystemRequirements.java
index a58b5d1..1b00e04 100644
--- a/presto-main/src/main/java/com/facebook/presto/server/PrestoSystemRequirements.java
+++ b/presto-main/src/main/java/com/facebook/presto/server/PrestoSystemRequirements.java
@@ -70,12 +70,15 @@ public final class PrestoSystemRequirements
String osName = StandardSystemProperty.OS_NAME.value();
String osArch = StandardSystemProperty.OS_ARCH.value();
if ("Linux".equals(osName)) {
- if (!"amd64".equals(osArch) && !"ppc64le".equals(osArch)) {
- failRequirement("Presto requires amd64 or ppc64le on Linux (found %s)", osArch);
+ if (!"amd64".equals(osArch) && !"ppc64le".equals(osArch) && !"aarch64".equals(osArch)) {
+ failRequirement("Presto requires amd64, aarch64 or ppc64le on Linux (found %s)", osArch);
}
if ("ppc64le".equals(osArch)) {
warnRequirement("Support for the POWER architecture is experimental");
}
+ if ("aarch64".equals(osArch)) {
+ warnRequirement("Support for the aarch64 architecture is experimental");
+ }
}
else if ("Mac OS X".equals(osName)) {
if (!"x86_64".equals(osArch)) {
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/presto.git
git@gitee.com:src-openeuler/presto.git
src-openeuler
presto
presto
master

搜索帮助