mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
Remove baremetal cfg detection in build script
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
This commit is contained in:
parent
0ec75861e6
commit
14b92dede4
1 changed files with 0 additions and 11 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue