Firstly, install Rust 1.60+.
Now we suggest use Rust 1.69.
Secondly, you'll need LLVM installed and llvm-config
in your PATH
. Just download from LLVM 14 or install llvm@14
using brew
.
$brew install llvm@14
# when use brew, llvm@14 installed to /usr/local/Cellar/llvm@14/14.0.6 by default
Add the LLVM installation location to LLVM_SYS_140_PREFIX
and the $PATH
.
export LLVM_SYS_140_PREFIX=<your LLVM 14 install location>
export PATH=<your LLVM 14 install location>/bin:$PATH
Go to the ir_cli
directory:
$cd ir_cli
Next, install wasm target dependencies.
$make install-rustc-wasm
Last, build the project:
$make
install Rust 1.60+ and llvm following the document's "Installation" section
$cd ir_cli
$make release
- Linux: IR linux binary require centos 8 version. Otherwise you can install libtinfo.so.6 and glibc 6 manually.
For more information, please refer to ir_cli