diff options
author | 2018-04-08 12:47:02 +0200 | |
---|---|---|
committer | 2018-04-08 12:47:02 +0200 | |
commit | 208ee4348abc5db7a78afa4d5ccd0e5e4e98f216 (patch) | |
tree | 21d98abff1177721080e5dfa90ae1cffab08c430 /cortex-m-rt/src/lib.rs | |
parent | 94ab524e8aa83c1d51eda11d7381cfea32ba03a8 (diff) | |
download | cortex-m-208ee4348abc5db7a78afa4d5ccd0e5e4e98f216.tar.gz cortex-m-208ee4348abc5db7a78afa4d5ccd0e5e4e98f216.tar.zst cortex-m-208ee4348abc5db7a78afa4d5ccd0e5e4e98f216.zip |
support the newest nightly
Diffstat (limited to 'cortex-m-rt/src/lib.rs')
-rw-r--r-- | cortex-m-rt/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs index cb85f4e..06ee551 100644 --- a/cortex-m-rt/src/lib.rs +++ b/cortex-m-rt/src/lib.rs @@ -485,7 +485,7 @@ #![deny(missing_docs)] #![deny(warnings)] #![feature(asm)] -#![feature(compiler_builtins_lib)] +#![cfg_attr(needs_cb, feature(compiler_builtins_lib))] #![feature(global_asm)] #![feature(lang_items)] #![feature(linkage)] @@ -493,6 +493,7 @@ #![feature(used)] #![no_std] +#[cfg(needs_cb)] extern crate compiler_builtins; #[cfg(target_arch = "arm")] extern crate cortex_m; |