From 19e4f42d50e3dc6980983ea1c34b3b5274d57ae5 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 19 Jul 2019 11:01:27 -0700 Subject: [PATCH] Fix compilation of wasmtime-environ from within wasmtime-jit. (#201) * Fix compilation of wasmtime-environ from within wasmtime-jit. Enable wasmtime-environ/std when wasmtime-jit's std feature is enabled. Fixes #200. * Fix wasmtime-debug build too. --- wasmtime-debug/Cargo.toml | 2 +- wasmtime-jit/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wasmtime-debug/Cargo.toml b/wasmtime-debug/Cargo.toml index a5521c8e94..c3f696729d 100644 --- a/wasmtime-debug/Cargo.toml +++ b/wasmtime-debug/Cargo.toml @@ -25,7 +25,7 @@ failure_derive = { version = "0.1.3", default-features = false } [features] default = ["std"] -std = ["cranelift-codegen/std", "cranelift-wasm/std"] +std = ["cranelift-codegen/std", "cranelift-wasm/std", "wasmtime-environ/std"] core = ["cranelift-codegen/core", "cranelift-wasm/core"] [badges] diff --git a/wasmtime-jit/Cargo.toml b/wasmtime-jit/Cargo.toml index 60b9fbec36..b1c5712e28 100644 --- a/wasmtime-jit/Cargo.toml +++ b/wasmtime-jit/Cargo.toml @@ -28,7 +28,7 @@ wasmparser = "0.32.1" [features] default = ["std"] -std = ["cranelift-codegen/std", "cranelift-wasm/std"] +std = ["cranelift-codegen/std", "cranelift-wasm/std", "wasmtime-environ/std"] core = ["hashbrown/nightly", "cranelift-codegen/core", "cranelift-wasm/core", "wasmtime-environ/core"] lightbeam = ["wasmtime-environ/lightbeam"]