Skip to content

Provide a build of lli that can run current rustc's bytecode output #18078

@mzabaluev

Description

@mzabaluev

I want to have a tool in the source tree of a project, to use it during the project's build.
It would be great to write the tool in Rust, but if I compile it into a native executable, there will be problems with cross-compiling builds. A better option would be to generate LLVM bytecode and run it with lli, but the version of LLVM provided by my Linux distribution (3.4) fails to run bytecode produced by Rust.

It seems that any user of the bytecode would need to build and install the LLVM used by Rust. Another issue is that it's currently a fork of upstream LLVM, so anything that requires the upstream LLVM on the same system may suffer compatibility problems in turn. It would be a better solution to build and install a rust-lli along with the compiler, at least until Rust can depend on a reasonably old stable version of the upstream LLVM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions