Skip to content

Commit

Permalink
Merge pull request #38 from pftbest/test
Browse files Browse the repository at this point in the history
Don't include lang_items when in test mode.
  • Loading branch information
japaric authored Oct 13, 2017
2 parents b968503 + 4fecabe commit 12521c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cortex-m-rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
//!
//! Allocating the call stack on a different RAM region.
//!
//! ```
//! ```,ignore
//! MEMORY
//! {
//! /* call stack will go here */
Expand Down Expand Up @@ -247,7 +247,7 @@
//!
//! Locate the `.text` section 1024 bytes after the start of the FLASH region.
//!
//! ```
//! ```,ignore
//! _stext = ORIGIN(FLASH) + 0x400;
//! ```
//!
Expand All @@ -260,7 +260,7 @@
//!
//! #### Example
//!
//! ```
//! ```,ignore
//! extern crate some_allocator;
//!
//! // Size of the heap in bytes
Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit 12521c9

Please sign in to comment.