-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Description
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.