diff --git a/core-foundation-sys/Cargo.toml b/core-foundation-sys/Cargo.toml index 4a98322..6cf72ca 100644 --- a/core-foundation-sys/Cargo.toml +++ b/core-foundation-sys/Cargo.toml @@ -3,7 +3,7 @@ name = "core-foundation-sys" description = "Bindings to Core Foundation for OS X" homepage = "https://github.com/servo/core-foundation-rs" repository = "https://github.com/servo/core-foundation-rs" -version = "0.4.3" +version = "0.4.4" authors = ["The Servo Project Developers"] license = "MIT / Apache-2.0" build = "build.rs" diff --git a/core-foundation-sys/build.rs b/core-foundation-sys/build.rs index a1a0ea1..1f03b06 100644 --- a/core-foundation-sys/build.rs +++ b/core-foundation-sys/build.rs @@ -8,5 +8,7 @@ // except according to those terms. fn main() { - println!("cargo:rustc-link-lib=framework=CoreFoundation"); + if std::env::var("TARGET").unwrap().contains("-apple") { + println!("cargo:rustc-link-lib=framework=CoreFoundation"); + } } diff --git a/core-foundation/Cargo.toml b/core-foundation/Cargo.toml index 4b8e305..a5bb239 100644 --- a/core-foundation/Cargo.toml +++ b/core-foundation/Cargo.toml @@ -3,13 +3,13 @@ name = "core-foundation" description = "Bindings to Core Foundation for OS X" homepage = "https://github.com/servo/core-foundation-rs" repository = "https://github.com/servo/core-foundation-rs" -version = "0.4.3" +version = "0.4.4" authors = ["The Servo Project Developers"] license = "MIT / Apache-2.0" [dependencies.core-foundation-sys] path = "../core-foundation-sys" -version = "0.4.3" +version = "0.4.4" [dependencies] libc = "0.2"