Skip to content

Commit 9a63ddf

Browse files
authored
Merge pull request #27 from rtsuk/arm
Only build libaccumulate.a for x86
2 parents 2476771 + 26f334a commit 9a63ddf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "font-rs"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
license = "Apache-2.0"
55
authors = [ "Raph Levien <[email protected]>" ]
66
keywords = ["font", "truetype", "ttf"]
@@ -11,5 +11,5 @@ build = "build.rs"
1111
[features]
1212
sse = []
1313

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

build.rs

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

34
fn main() {
5+
#[cfg(feature="sse")]
46
gcc::Build::new()
57
.file("src/accumulate.c")
68
.flag("-march=native")

0 commit comments

Comments
 (0)