Revert "[LoongArch] tools/clang/scripts: add LoongArch as one of the target to build."
This reverts commit 13d4d9000d7320838a4f4068751e23e909809ac0.
Reason for revert:
An old package with subrevision -2 already existed, so the binaries
from this CL were never uploaded, and we rolled in the old -2
binaries. Reverting because that's not what we wanted. (See comment
on the code review.)
Original change's description:
> [LoongArch] tools/clang/scripts: add LoongArch as one of the target to build.
>
> Bug: 1435213
> Change-Id: Ic1d2546bed3b793c08b6482e82235c90b89786e3
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4410289
> Reviewed-by: Hans Wennborg <hans@chromium.org>
> Commit-Queue: Hans Wennborg <hans@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1134148}
Bug: 1435213
Change-Id: I6f71ff0fe6c73390fee5f2539b6b013babc57d24
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4463121
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1134500}
diff --git a/tools/clang/scripts/build.py b/tools/clang/scripts/build.py
index 62cde967..2dc9323 100755
--- a/tools/clang/scripts/build.py
+++ b/tools/clang/scripts/build.py
@@ -682,7 +682,7 @@
cxxflags = []
ldflags = []
- targets = 'AArch64;ARM;LoongArch;Mips;PowerPC;RISCV;SystemZ;WebAssembly;X86'
+ targets = 'AArch64;ARM;Mips;PowerPC;RISCV;SystemZ;WebAssembly;X86'
projects = 'clang;lld;clang-tools-extra'
if args.bolt:
projects += ';bolt'
@@ -1048,9 +1048,6 @@
elif platform.machine() == 'riscv64':
cmake_args.append(
'-DLLVM_DEFAULT_TARGET_TRIPLE=riscv64-unknown-linux-gnu')
- elif platform.machine() == 'loongarch64':
- cmake_args.append(
- '-DLLVM_DEFAULT_TARGET_TRIPLE=loongarch64-unknown-linux-gnu')
else:
cmake_args.append('-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-gnu')
cmake_args.append('-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON')
diff --git a/tools/clang/scripts/update.py b/tools/clang/scripts/update.py
index e59bd198..c863434 100755
--- a/tools/clang/scripts/update.py
+++ b/tools/clang/scripts/update.py
@@ -36,7 +36,7 @@
# Reverting problematic clang rolls is safe, though.
# This is the output of `git describe` and is usable as a commit-ish.
CLANG_REVISION = 'llvmorg-17-init-8029-g27f27d15'
-CLANG_SUB_REVISION = 2
+CLANG_SUB_REVISION = 1
PACKAGE_VERSION = '%s-%s' % (CLANG_REVISION, CLANG_SUB_REVISION)
RELEASE_VERSION = '17'