xous-core/services/rkyv-test-client/build.rs
Sean Cross fd255d8f53 services: add rkyv-test-client and rkyv-test-server
These servers demonstrate how we might use rkyv in the future.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 23:39:35 +08:00

17 lines
492 B
Rust

// NOTE: Adapted from cortex-m/build.rs
use std::env;
fn main() {
let target = env::var("TARGET").unwrap();
let target_os = target.split('-').nth(2).unwrap_or("none");
// 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!("cargo:rustc-cfg=baremetal");
}
println!("cargo:rerun-if-changed=build.rs");
}