about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2020-06-18 14:45:19 -0700
committerEric Huss <eric@huss.org>2020-06-18 14:48:53 -0700
commit5a9ff052b4879e4ef6748c2f85563a7db0548c0b (patch)
tree078f6e214b8601a8043b227ccd71f9fde1e60ca9 /src
parentabb5800dd5b05a1b0b3e1c840866389f05548ed5 (diff)
downloadrust-5a9ff052b4879e4ef6748c2f85563a7db0548c0b.tar.gz
rust-5a9ff052b4879e4ef6748c2f85563a7db0548c0b.zip
Disable core benches on wasm (benches not supported).
Diffstat (limited to 'src')
-rw-r--r--src/libcore/benches/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/benches/lib.rs b/src/libcore/benches/lib.rs
index 570fc4ab933..de4ef7949f3 100644
--- a/src/libcore/benches/lib.rs
+++ b/src/libcore/benches/lib.rs
@@ -1,3 +1,5 @@
+// wasm32 does not support benches (no time).
+#![cfg(not(target_arch = "wasm32"))]
 #![feature(flt2dec)]
 #![feature(test)]