aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2017-10-13 10:23:05 +0200
committerGravatar GitHub <noreply@github.com> 2017-10-13 10:23:05 +0200
commit12521c90a03bf59432de7a7c0e60ccf2a3ef97c2 (patch)
tree46e386c2ddf89a786cb4717a946f22c982aa9094 /cortex-m-rt
parentb9685034bde10047202680866a55ee75ae1c7302 (diff)
parent4fecabeb62f62f4d6b2ae86731e14d70fd5c1ee0 (diff)
downloadcortex-m-12521c90a03bf59432de7a7c0e60ccf2a3ef97c2.tar.gz
cortex-m-12521c90a03bf59432de7a7c0e60ccf2a3ef97c2.tar.zst
cortex-m-12521c90a03bf59432de7a7c0e60ccf2a3ef97c2.zip
Merge pull request #38 from pftbest/test
Don't include lang_items when in test mode.
Diffstat (limited to 'cortex-m-rt')
-rw-r--r--cortex-m-rt/src/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs
index 64ef292..82dd9eb 100644
--- a/cortex-m-rt/src/lib.rs
+++ b/cortex-m-rt/src/lib.rs
@@ -219,7 +219,7 @@
//!
//! Allocating the call stack on a different RAM region.
//!
-//! ```
+//! ```,ignore
//! MEMORY
//! {
//! /* call stack will go here */
@@ -247,7 +247,7 @@
//!
//! Locate the `.text` section 1024 bytes after the start of the FLASH region.
//!
-//! ```
+//! ```,ignore
//! _stext = ORIGIN(FLASH) + 0x400;
//! ```
//!
@@ -260,7 +260,7 @@
//!
//! #### Example
//!
-//! ```
+//! ```,ignore
//! extern crate some_allocator;
//!
//! // Size of the heap in bytes
@@ -295,6 +295,7 @@ extern crate cortex_m;
extern crate compiler_builtins;
extern crate r0;
+#[cfg(not(test))]
mod lang_items;
#[cfg(target_arch = "arm")]