I want to compile llvm-ir code(.ll) to .rlib file in compilation of library.
I emit the llvm-ir code during compile time(
RUSTFLAGS="--emit=llvm-ir" cargo build) then there are several llvm-ir code including dependency in cargo.toml or library using in project.
Then, i want to analysis in all llvm-ir code related to dependency or library code and compile llvm-ir code to rlib file after the analysis.
However, I have no insight to switch llvm-ir code to rlib file. Is there any solution to generate rlib file?
Have a nice day