Commit 5a764823 authored by Jonathan Klimt's avatar Jonathan Klimt Committed by Stefan Lankes
Browse files

slighly improved error message for missing cli utils

parent 94285641
......@@ -14,12 +14,12 @@ fn main() {
.args(&["src/arch/x86_64/entry.asm", "-felf64", "-o"])
.arg(&format!("{}/entry.o", out_dir))
.status()
.unwrap();
.expect("Could not start nasm. Is it installed?");
Command::new("ar")
.args(&["crus", "libentry.a", "entry.o"])
.current_dir(&Path::new(&out_dir))
.status()
.unwrap();
.expect("Could not start ar. Is it installed?");
println!("cargo:rustc-link-search=native={}", out_dir);
println!("cargo:rustc-link-lib=static=entry");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment