diff options
| author | Nicholas Bishop <nbishop@nbishop.net> | 2022-11-20 00:03:10 +0000 |
|---|---|---|
| committer | Nicholas Bishop <nbishop@nbishop.net> | 2022-11-20 00:03:10 +0000 |
| commit | eafe61d6bd9d983535a90b29ef5497b0a6e42019 (patch) | |
| tree | e53f3a66bc88581d3071dfafed498a07ebf7cf89 /compiler/rustc_codegen_gcc/src | |
| parent | cdb6907893da1d025eba2d8cd396db4e84bca98c (diff) | |
| download | rust-eafe61d6bd9d983535a90b29ef5497b0a6e42019.tar.gz rust-eafe61d6bd9d983535a90b29ef5497b0a6e42019.zip | |
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
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
0 files changed, 0 insertions, 0 deletions
