diff options
author | 2021-02-01 00:56:33 +0000 | |
---|---|---|
committer | 2021-02-01 00:56:33 +0000 | |
commit | 96b997d0cdf7b2f568c4e0589e789101b9f6bac7 (patch) | |
tree | 6b230f7b2d0873c661a39a08edcd3cd7394c5c21 /build.rs | |
parent | 822f660d38d7c01902613e2d052e4d3506bd8eeb (diff) | |
parent | 937f34eb9faea213c8ed45fdee1924fa7331cb47 (diff) | |
download | cortex-m-v0.5.x.tar.gz cortex-m-v0.5.x.tar.zst cortex-m-v0.5.x.zip |
Prepare 0.5.11, removing linking to pre-built binaries.
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -6,16 +6,6 @@ fn main() { let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); let name = env::var("CARGO_PKG_NAME").unwrap(); - if target.starts_with("thumb") && env::var_os("CARGO_FEATURE_INLINE_ASM").is_none() { - fs::copy( - format!("bin/{}.a", target), - out_dir.join(format!("lib{}.a", name)), - ).unwrap(); - - println!("cargo:rustc-link-lib=static={}", name); - println!("cargo:rustc-link-search={}", out_dir.display()); - } - if target.starts_with("thumbv6m-") { println!("cargo:rustc-cfg=cortex_m"); println!("cargo:rustc-cfg=armv6m"); |