about summary refs log tree commit diff
path: root/compiler/rustc_error_codes
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-12-13 10:35:28 +0000
committerbors <bors@rust-lang.org>2021-12-13 10:35:28 +0000
commita737592a3d8f0f5ec76524c880d226f28bef2c84 (patch)
treeab4c9d5372b5ee45a48a21b0a1e8a8aa08c384a8 /compiler/rustc_error_codes
parent6d6d0899c8bf9d321ffa12426ca7ae7e3e15478a (diff)
parent509dedccacbce22c291da3bf85468fcdb92303d4 (diff)
downloadrust-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_error_codes')
0 files changed, 0 insertions, 0 deletions