From c6ed6b7247ef4b9d19d95a54bf15bb4a52d8fe4f Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 9 Oct 2019 06:28:47 -0700 Subject: [PATCH] "std" builds need to enable the "std" feature in cranelift-codegen. --- cranelift/preopt/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cranelift/preopt/Cargo.toml b/cranelift/preopt/Cargo.toml index 5d0d1ebd3e..3f8c87be37 100644 --- a/cranelift/preopt/Cargo.toml +++ b/cranelift/preopt/Cargo.toml @@ -18,6 +18,11 @@ cranelift-entity = { path = "../cranelift-entity", version = "0.45.0" } # cranelift currently supports. # rustc_apfloat = { version = "0.1.2", default-features = false } +[features] +default = ["std"] +std = ["cranelift-codegen/std"] +core = ["cranelift-codegen/core"] + [badges] maintenance = { status = "experimental" } travis-ci = { repository = "CraneStation/cranelift" }