Most of the way to no_std support

This commit is contained in:
Lachlan Sneff
2018-01-15 14:05:38 -05:00
committed by Dan Gohman
parent 2a26b70854
commit 7375088c3e
42 changed files with 146 additions and 5 deletions

View File

@@ -142,11 +142,23 @@
//! }
//! ```
#![cfg_attr(feature = "no_std", no_std)]
#![deny(missing_docs)]
#![cfg_attr(feature = "no_std", feature(alloc))]
extern crate cretonne;
#[cfg(feature = "no_std")]
extern crate alloc;
pub use frontend::{ILBuilder, FunctionBuilder};
mod frontend;
mod ssa;
#[cfg(feature = "no_std")]
mod std {
pub use alloc::vec;
pub use core::*;
}