Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use module inline assembly to embed bitcode #91654

Merged
merged 1 commit into from
Dec 13, 2021

Commits on Dec 8, 2021

  1. 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 rust-lang#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.
    nikic committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    509dedc View commit details
    Browse the repository at this point in the history