pipe target information through

This commit is contained in:
Folkert 2021-09-01 21:50:59 +02:00
parent d8d4522b16
commit 98c672bbde
4 changed files with 112 additions and 18 deletions

View file

@ -221,7 +221,7 @@ pub fn gen_from_mono_module(
use target_lexicon::Architecture;
match target.architecture {
Architecture::X86_64 | Architecture::Aarch64(_) => {
Architecture::X86_64 | Architecture::X86_32(_) | Architecture::Aarch64(_) => {
// assemble the .ll into a .bc
let _ = Command::new("llvm-as")
.args(&[