Remove std feature from cranelift-preopt

This commit is contained in:
bjorn3
2019-09-28 15:59:08 +02:00
committed by Dan Gohman
parent 1a99ac6b4a
commit 9037e7a601
2 changed files with 0 additions and 12 deletions

View File

@@ -18,11 +18,6 @@ cranelift-entity = { path = "../cranelift-entity", version = "0.44.0" }
# cranelift currently supports. # cranelift currently supports.
# rustc_apfloat = { version = "0.1.2", default-features = false } # rustc_apfloat = { version = "0.1.2", default-features = false }
[features]
default = ["std"]
std = ["cranelift-codegen/std"]
core = ["cranelift-codegen/core"]
[badges] [badges]
maintenance = { status = "experimental" } maintenance = { status = "experimental" }
travis-ci = { repository = "CraneStation/cranelift" } travis-ci = { repository = "CraneStation/cranelift" }

View File

@@ -20,13 +20,6 @@
)] )]
#![no_std] #![no_std]
#[cfg(not(feature = "std"))]
#[macro_use]
extern crate alloc as std;
#[cfg(feature = "std")]
#[macro_use]
extern crate std;
mod constant_folding; mod constant_folding;
use cranelift_codegen::{isa::TargetIsa, settings::FlagsOrIsa, CodegenResult, Context}; use cranelift_codegen::{isa::TargetIsa, settings::FlagsOrIsa, CodegenResult, Context};