diff options
| author | bors <bors@rust-lang.org> | 2021-12-13 10:35:28 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-12-13 10:35:28 +0000 | 
| commit | a737592a3d8f0f5ec76524c880d226f28bef2c84 (patch) | |
| tree | ab4c9d5372b5ee45a48a21b0a1e8a8aa08c384a8 /compiler/rustc_builtin_macros/src/global_allocator.rs | |
| parent | 6d6d0899c8bf9d321ffa12426ca7ae7e3e15478a (diff) | |
| parent | 509dedccacbce22c291da3bf85468fcdb92303d4 (diff) | |
| download | rust-a737592a3d8f0f5ec76524c880d226f28bef2c84.tar.gz rust-a737592a3d8f0f5ec76524c880d226f28bef2c84.zip | |
Auto merge of #91654 - nikic:llvmbc-section-flags, r=nagisa
Use module inline assembly to embed bitcode In LLVM 14, our current method of setting section flags to avoid embedding the `.llvmbc` section into final compilation artifacts will no longer work, see issue #90326. The upstream recommendation is to instead embed the entire bitcode using module-level inline assembly, which is what this change does. I've kept the existing code for platforms where we do not need to set section flags, but possibly we should always be using the inline asm approach (which would have to look a bit different for MachO). r? `@nagisa`
Diffstat (limited to 'compiler/rustc_builtin_macros/src/global_allocator.rs')
0 files changed, 0 insertions, 0 deletions
