TomBebbington / llvm-rs

LLVM wrappers for Rust
BSD 3-Clause "New" or "Revised" License
68 stars 27 forks source link

Won't build #32

Closed aggalex closed 4 years ago

aggalex commented 4 years ago
   Compiling llvm-alt v0.5.0
error[E0308]: mismatched types
   --> /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/llvm-alt-0.5.0/src/engine.rs:154:109
    |
154 |             let result = engine::LLVMCreateMCJITCompilerForModule(&mut ee, (&*module).into(), &mut options, size, &mut out);
    |                                                                                                             ^^^^ expected `u64`, found `usize`
    |
help: you can convert an `usize` to `u64` and panic if the converted value wouldn't fit
    |
154 |             let result = engine::LLVMCreateMCJITCompilerForModule(&mut ee, (&*module).into(), &mut options, size.try_into().unwrap(), &mut out);
    |                                                                                                             ^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: could not compile `llvm-alt`.
aggalex commented 4 years ago

Apparently the git repo works instead. Update crates.io please

aggalex commented 4 years ago

This is the same with #18