Commit dbc73a6c authored by Zhao Jiazhong's avatar Zhao Jiazhong Committed by V8 LUCI CQ

[tools] Fix build issue on mips64/loongarch64 host machines

Change-Id: Ia976df987bd4027d8bf1b22711a9611847d2be8d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3124095Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#76571}
parent 7d13c215
......@@ -299,6 +299,10 @@ class Config(object):
cpu = "arm64"
elif self.arch == "arm" and _GetMachine() in ("aarch64", "arm64"):
cpu = "arm"
elif self.arch == "loong64" and _GetMachine() == "loongarch64":
cpu = "loong64"
elif self.arch == "mips64el" and _GetMachine() == "mips64":
cpu = "mips64el"
elif "64" in self.arch or self.arch == "s390x":
# Native x64 or simulator build.
cpu = "x64"
......@@ -322,9 +326,9 @@ class Config(object):
return []
def GetSpecialCompiler(self):
if _GetMachine() == "aarch64":
# We have no prebuilt Clang for arm64 on Linux, so use the system Clang
# instead.
if _GetMachine() in ("aarch64", "mips64", "loongarch64"):
# We have no prebuilt Clang for arm64, mips64 or loongarch64 on Linux,
# so use the system Clang instead.
return ["clang_base_path = \"/usr\"", "clang_use_chrome_plugins = false"]
return []
......
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