Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit b82bba2

Browse files
committed
Properly gate the compiler-builtins smoke tests
1 parent 10abed4 commit b82bba2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

crates/compiler-builtins-smoke-test/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ name = "cb"
33
version = "0.1.0"
44
authors = ["Jorge Aparicio <[email protected]>"]
55

6-
[dependencies]
6+
[features]
7+
default = []
8+
stable = []

crates/compiler-builtins-smoke-test/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
55
#![allow(dead_code)]
66
#![no_std]
7+
#![cfg_attr(
8+
all(target_arch = "wasm32", not(feature = "stable")),
9+
feature(core_intrinsics)
10+
)]
711

812
#[path = "../../../src/math/mod.rs"]
913
mod libm;

0 commit comments

Comments
 (0)