mirror of
https://github.com/roc-lang/roc.git
synced 2024-08-17 06:41:22 +03:00
Use vanilla llvm-as
This commit is contained in:
parent
c090e1729b
commit
5dc0870f6a
@ -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(),
|
||||
|
@ -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;
|
||||
|
@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
llvm-as "$@"
|
@ -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"
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user