diff options
author | 2020-09-01 22:58:22 +0200 | |
---|---|---|
committer | 2020-10-13 21:31:37 +0200 | |
commit | cab2e28f674901cd87d4f88f7eb5ba32d3517b35 (patch) | |
tree | cacc3652c5fda7f5830319abfe88b063e33f5fa3 /cortex-m-semihosting/build.rs | |
parent | 9bc9be611b262edf5c7811235e16bdbcbb3509cf (diff) | |
download | cortex-m-cab2e28f674901cd87d4f88f7eb5ba32d3517b35.tar.gz cortex-m-cab2e28f674901cd87d4f88f7eb5ba32d3517b35.tar.zst cortex-m-cab2e28f674901cd87d4f88f7eb5ba32d3517b35.zip |
Integrate semihosting crates
Diffstat (limited to 'cortex-m-semihosting/build.rs')
-rw-r--r-- | cortex-m-semihosting/build.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cortex-m-semihosting/build.rs b/cortex-m-semihosting/build.rs index 4f4a6d6..5fc6a04 100644 --- a/cortex-m-semihosting/build.rs +++ b/cortex-m-semihosting/build.rs @@ -9,9 +9,10 @@ fn main() { if target.starts_with("thumbv") { if env::var_os("CARGO_FEATURE_INLINE_ASM").is_none() { fs::copy( - format!("bin/{}.a", target), + format!("../bin/{}.a", target), out_dir.join(format!("lib{}.a", name)), - ).unwrap(); + ) + .unwrap(); println!("cargo:rustc-link-lib=static={}", name); println!("cargo:rustc-link-search={}", out_dir.display()); |