diff --git a/xous-rs/build.rs b/xous-rs/build.rs index 4ef443bd5..0e1ebcfd5 100644 --- a/xous-rs/build.rs +++ b/xous-rs/build.rs @@ -6,19 +6,8 @@ use std::path::PathBuf; fn main() { let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); let target = env::var("TARGET").unwrap(); - let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap(); let name = env::var("CARGO_PKG_NAME").unwrap(); - // If we're not running on a desktop-class operating system, emit the "baremetal" - // config setting. This will enable software to do tasks such as - // managing memory. - if target_os == "none" { - println!("Target {} is bare metal", target); - println!("cargo:rustc-cfg=baremetal"); - } else { - println!("Target {} is NOT bare metal", target); - } - if target.starts_with("riscv") { fs::copy( format!("bin/{}.a", target),