Skip to content

Commit 26f334a

Browse files
author
Rob Tsuk
committed
Use feature instead of arch
1 parent 6e57526 commit 26f334a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ build = "build.rs"
1111
[features]
1212
sse = []
1313

14-
[target.'cfg(target_arch = "x86")'.build-dependencies]
14+
[target.'cfg(target_feature = "sse")'.build-dependencies]
1515
gcc = "0.3"

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#[cfg(target_arch = "x86")]
1+
#[cfg(feature="sse")]
22
extern crate gcc;
33

44
fn main() {
5-
#[cfg(target_arch = "x86")]
5+
#[cfg(feature="sse")]
66
gcc::Build::new()
77
.file("src/accumulate.c")
88
.flag("-march=native")

0 commit comments

Comments
 (0)