1 2 3 4 5 6 7 8 9 10 11 12 13
use std::process::Command; use std::env; fn main() { let out_dir = env::var("OUT_DIR").unwrap(); let obj = format!("{}/ap_boot.bin", out_dir); Command::new("nasm") .args(&["-Wall", "-fbin", "src/ap_boot.s", "-o"]) .arg(&obj) .status() .unwrap(); }