Skip to content

Commit 76dd8d2

Browse files
committed
Issue #117: Support compiling without min_specialization and stdsimd
Signed-off-by: Tom Kaitchuck <[email protected]>
1 parent 4c340f5 commit 76dd8d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use std::env;
44

55
fn main() {
66
println!("cargo:rerun-if-changed=build.rs");
7-
if let Some(channel) = version_check::Channel::read() {
8-
if channel.supports_features() {
9-
println!("cargo:rustc-cfg=feature=\"specialize\"");
10-
println!("cargo:rustc-cfg=feature=\"stdsimd\"");
11-
}
7+
if let Some(true) = version_check::supports_feature("specialize") {
8+
println!("cargo:rustc-cfg=feature=\"specialize\"");
9+
}
10+
if let Some(true) = version_check::supports_feature("stdsimd") {
11+
println!("cargo:rustc-cfg=feature=\"stdsimd\"");
1212
}
1313
let os = env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS was not set");
1414
if os.eq_ignore_ascii_case("linux")

0 commit comments

Comments
 (0)