]> git.lizzy.rs Git - rust.git/commit
dist-various-2: Use clang for the UEFI targets
authorNicholas Bishop <nbishop@nbishop.net>
Sun, 20 Nov 2022 00:03:10 +0000 (00:03 +0000)
committerNicholas Bishop <nbishop@nbishop.net>
Sun, 20 Nov 2022 00:03:10 +0000 (00:03 +0000)
commiteafe61d6bd9d983535a90b29ef5497b0a6e42019
treee53f3a66bc88581d3071dfafed498a07ebf7cf89
parentcdb6907893da1d025eba2d8cd396db4e84bca98c
dist-various-2: Use clang for the UEFI targets

This fixes an issue where the C and asm sources built by
compiler_builtins were being compiled as ELF objects instead of PE
objects. This wasn't noticed before because it doesn't cause
compiler_builtins or rustc to fail to build. You only see a failure when
a program is built that references one of the symbols in an ELF object.

Compiling with clang fixes this because the `cc` crate converts the UEFI
targets into Windows targets that clang understands, causing it to
produce PE objects.

Note that this requires compiler_builtins >= 0.1.84.

Fixes https://github.com/rust-lang/rust/issues/104326
src/ci/docker/host-x86_64/dist-various-2/Dockerfile