Use vanilla llvm-as

This commit is contained in:
Richard Feldman 2021-06-07 21:51:37 -04:00
parent c090e1729b
commit 5dc0870f6a
4 changed files with 2 additions and 15 deletions

View File

@ -204,7 +204,7 @@ pub fn gen_from_mono_module(
}
// assemble the .ll into a .bc
let _ = Command::new("llvm-as-12")
let _ = Command::new("llvm-as")
.env_clear()
.args(&[
app_ll_dbg_file.to_str().unwrap(),

View File

@ -56,11 +56,7 @@ fn main() {
let dest_bc = dest_bc_path.to_str().expect("Invalid dest bc path");
println!("Compiling bitcode to: {}", dest_bc);
run_command(
build_script_dir_path,
"llvm-as-12",
&[dest_ir, "-o", dest_bc],
);
run_command(build_script_dir_path, "llvm-as", &[dest_ir, "-o", dest_bc]);
get_zig_files(bitcode_path.as_path(), &|path| {
let path: &Path = path;

View File

@ -1,2 +0,0 @@
#!/bin/sh
llvm-as "$@"

View File

@ -96,11 +96,4 @@ pkgs.mkShell
]
++ linuxInputs
);
# Non Nix llvm installs names the bin llvm-as-${version}, so we
# alias `llvm` to `llvm-as-${version}` here.
# This the name of the file in nix/bin will need to be updated whenever llvm is updated
shellHook = ''
export PATH="$PATH:$PWD/nix/bin"
'';
}