aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt/src/lib.rs')
-rw-r--r--cortex-m-rt/src/lib.rs3
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;