diff options
| author | Nicholas Bishop <nbishop@nbishop.net> | 2022-11-20 19:13:17 +0000 |
|---|---|---|
| committer | Nicholas Bishop <nbishop@nbishop.net> | 2022-11-20 20:25:22 +0000 |
| commit | 60546088bcfa9ce210a5b0f92079f7642f3b466b (patch) | |
| tree | ba54fc72697a7eef8e710a479b7bc28101133a66 /compiler/rustc_codegen_gcc/src/errors.rs | |
| parent | 01a2a546bea08e6b561f99fe09aa94df3f185bbc (diff) | |
| download | rust-60546088bcfa9ce210a5b0f92079f7642f3b466b.tar.gz rust-60546088bcfa9ce210a5b0f92079f7642f3b466b.zip | |
dist: Ensure UEFI rlibs are all COFF
If clang isn't the C compiler used for the UEFI targets, or if the wrong `--target` is passed to clang, we will get ELF objects in some rlibs. This will cause problems at link time when trying to compile a UEFI program that uses any of those objects. Add a check to the dist step for UEFI targets that reads each rlib with the `object` crate and fails with an error if any non-COFF objects are found.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
