From b82bba2e3ff821939458dbcbd5a1c4f58d88de72 Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Tue, 9 Jul 2019 17:57:33 +0200 Subject: [PATCH] Properly gate the compiler-builtins smoke tests --- crates/compiler-builtins-smoke-test/Cargo.toml | 4 +++- crates/compiler-builtins-smoke-test/src/lib.rs | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/compiler-builtins-smoke-test/Cargo.toml b/crates/compiler-builtins-smoke-test/Cargo.toml index 40e75dd2..29c6a15b 100644 --- a/crates/compiler-builtins-smoke-test/Cargo.toml +++ b/crates/compiler-builtins-smoke-test/Cargo.toml @@ -3,4 +3,6 @@ name = "cb" version = "0.1.0" authors = ["Jorge Aparicio "] -[dependencies] +[features] +default = [] +stable = [] \ No newline at end of file diff --git a/crates/compiler-builtins-smoke-test/src/lib.rs b/crates/compiler-builtins-smoke-test/src/lib.rs index 7fad301b..51ff3059 100644 --- a/crates/compiler-builtins-smoke-test/src/lib.rs +++ b/crates/compiler-builtins-smoke-test/src/lib.rs @@ -4,6 +4,10 @@ #![allow(dead_code)] #![no_std] +#![cfg_attr( + all(target_arch = "wasm32", not(feature = "stable")), + feature(core_intrinsics) +)] #[path = "../../../src/math/mod.rs"] mod libm;