Commit 096455ea authored by Victor Gomes's avatar Victor Gomes Committed by V8 LUCI CQ

[gm] Fuchsia support

Adds the archs fuchsia_x64 and fuchsia_arm64.

No-Try: true
Change-Id: I5e12a436fc206fecc910965e9597b7e05be23e26
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3416247
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78779}
parent 3694775d
...@@ -43,7 +43,8 @@ BUILD_TARGETS_ALL = ["all"] ...@@ -43,7 +43,8 @@ BUILD_TARGETS_ALL = ["all"]
# All arches that this script understands. # All arches that this script understands.
ARCHES = ["ia32", "x64", "arm", "arm64", "mipsel", "mips64el", "ppc", "ppc64", ARCHES = ["ia32", "x64", "arm", "arm64", "mipsel", "mips64el", "ppc", "ppc64",
"riscv64", "s390", "s390x", "android_arm", "android_arm64", "loong64"] "riscv64", "s390", "s390x", "android_arm", "android_arm64", "loong64",
"fuchsia_x64", "fuchsia_arm64"]
# Arches that get built/run when you don't specify any. # Arches that get built/run when you don't specify any.
DEFAULT_ARCHES = ["ia32", "x64", "arm", "arm64"] DEFAULT_ARCHES = ["ia32", "x64", "arm", "arm64"]
# Modes that this script understands. # Modes that this script understands.
...@@ -291,7 +292,7 @@ class Config(object): ...@@ -291,7 +292,7 @@ class Config(object):
cpu = "x86" cpu = "x86"
if self.arch == "android_arm": if self.arch == "android_arm":
cpu = "arm" cpu = "arm"
elif self.arch == "android_arm64": elif self.arch == "android_arm64" or self.arch == "fuchsia_arm64":
cpu = "arm64" cpu = "arm64"
elif self.arch == "arm64" and _GetMachine() in ("aarch64", "arm64"): elif self.arch == "arm64" and _GetMachine() in ("aarch64", "arm64"):
# arm64 build host: # arm64 build host:
...@@ -310,7 +311,7 @@ class Config(object): ...@@ -310,7 +311,7 @@ class Config(object):
def GetV8TargetCpu(self): def GetV8TargetCpu(self):
if self.arch == "android_arm": if self.arch == "android_arm":
v8_cpu = "arm" v8_cpu = "arm"
elif self.arch == "android_arm64": elif self.arch == "android_arm64" or self.arch == "fuchsia_arm64":
v8_cpu = "arm64" v8_cpu = "arm64"
elif self.arch in ("arm", "arm64", "mipsel", "mips64el", "ppc", "ppc64", elif self.arch in ("arm", "arm64", "mipsel", "mips64el", "ppc", "ppc64",
"riscv64", "s390", "s390x", "loong64"): "riscv64", "s390", "s390x", "loong64"):
...@@ -322,6 +323,8 @@ class Config(object): ...@@ -322,6 +323,8 @@ class Config(object):
def GetTargetOS(self): def GetTargetOS(self):
if self.arch in ("android_arm", "android_arm64"): if self.arch in ("android_arm", "android_arm64"):
return ["target_os = \"android\""] return ["target_os = \"android\""]
elif self.arch in ("fuchsia_x64", "fuchsia_arm64"):
return ["target_os = \"fuchsia\""]
return [] return []
def GetSpecialCompiler(self): def GetSpecialCompiler(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment