We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c340f5 commit 76dd8d2Copy full SHA for 76dd8d2
build.rs
@@ -4,11 +4,11 @@ use std::env;
4
5
fn main() {
6
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
- }
+ if let Some(true) = version_check::supports_feature("specialize") {
+ println!("cargo:rustc-cfg=feature=\"specialize\"");
+ }
+ if let Some(true) = version_check::supports_feature("stdsimd") {
+ println!("cargo:rustc-cfg=feature=\"stdsimd\"");
12
}
13
let os = env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS was not set");
14
if os.eq_ignore_ascii_case("linux")
0 commit comments