summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/lib.rs
diff options
context:
space:
mode:
authorWANG Xuerui <git@xen0n.name>2024-06-30 14:55:36 +0800
committerWANG Xuerui <git@xen0n.name>2024-06-30 15:06:48 +0800
commit03fce3648db08c8fdc726408930c276fec5af124 (patch)
tree401a023b564ddb7e4452e5117f7dbb911f0d9dd0 /compiler/rustc_hir_analysis/src/lib.rs
parent716752ebe6974b5c6ab9b34b894e075f3e4a4b1e (diff)
downloadrust-03fce3648db08c8fdc726408930c276fec5af124.tar.gz
rust-03fce3648db08c8fdc726408930c276fec5af124.zip
Fix x86_64 code being produced for bare-metal LoongArch targets' `compiler_builtins`
Formerly the `loongarch*-*-none*` targets were added to the
`dist-various-2` CI job, but no corresponding toolchain was added along
with them. This meant the `compiler_builtins` for the targets were built
with the host toolchain.

As the other `dist-various` toolchains are mostly pre-built so far, to
avoid burdening them with crosstool-ng builds, simply move the two
bare-metal LoongArch targets to the `dist-loongarch64-linux` job which
has a ready-to-use LoongArch toolchain. With the proper CFLAGS applied
it is possible to build artifacts suitable for bare-metal. I verified
that the `compiler_builtins` objects are now correctly produced
regarding architecture and ABI, with the changes here applied.

Fixes #125908.

cc @heiher

try-job: dist-loongarch64-linux
try-job: dist-various-2
Diffstat (limited to 'compiler/rustc_hir_analysis/src/lib.rs')
0 files changed, 0 insertions, 0 deletions