use std::process::Command; fn main() { // Tell Cargo that if the given file changes, to rerun this build script. println!("cargo:rerun-if-changed=crabbios/crabbios.asm"); Command::new("nasm") .arg("crabbios/crabbios.asm") .args(["-f", "bin"]) .args(["-o", "roms/crabbios.bin"]) .args(["-I", "crabbios"]) .spawn() .unwrap(); }