1
0
forked from Rust/Core
Core/build.rs
sweetbread 59d825577a feat: Buttons + events
wip: malloc

feat: Buttons
2024-01-31 16:31:47 +03:00

21 lines
543 B
Rust

use std::{env, process::Command};
fn main() {
println!("cargo:rerun-if-changed=src/syscalls.S");
let out_dir = env::var("OUT_DIR").unwrap();
Command::new("fasm")
.arg("src/syscalls.S")
.arg(&format!("{}/libsyscalls.a", out_dir))
.status()
.unwrap();
// Command::new("ar")
// .arg("crus")
// .arg(&format!("{}/libsyscalls.a", out_dir))
// .arg(&format!("{}/libsyscalls.o", out_dir))
// .status().unwrap();
println!("cargo:rustc-link-search={}", out_dir)
}