#llvm #lto #high-level #lib-lto

llvm_link

High level bindings to the LLVM v3.9.1 release of libLTO, for building a linker with

1 unstable release

Uses old Rust 2015

0.0.1 Apr 10, 2017

#4 in #lto

MIT/Apache

600KB
296 lines

High level libLTO bindings for Rust.

Documentation

This crate expects llvm v3.9.1, higher or lower may present a problem.

All development work was done on Fedora25. So building on Windows/OSX isn't strictly supported yet.


lib.rs:

llvm_link

These are bindings to the LLVM's libLTO Link Time Optimization library.

This crate currently assumes you are locally using LLVMv3.9.1 It was originally compiled on Fedora25 AMD64, so you may have trouble getting it to work on other platforms. Windows and OSX is not yet supported. To build on Fedora25 you will need to install.

sudo dnf install gcc gcc-c++ llvm-devel redhat-rpm-config ncurses-devel

To use in a Rust Project

[dependencies]
llvm_link = "0.0.1"

Examples:

To get the local libLTO version:

use llvm_link::get_lto_version;

println!("{}",get_lto_version());

Dependencies