Skip to content

Commit 9941118

Browse files
authored
Auto merge of #502 - madsmtm:remove-build-script, r=jrmuizel
Remove build script from `core-foundation-sys` Should result in faster build times
2 parents 18b5e60 + f855f23 commit 9941118

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

core-foundation-sys/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ repository = "https://github.com/servo/core-foundation-rs"
66
version = "0.8.3"
77
authors = ["The Servo Project Developers"]
88
license = "MIT / Apache-2.0"
9-
build = "build.rs"
109

1110
[dependencies]
1211

core-foundation-sys/build.rs

Lines changed: 0 additions & 14 deletions
This file was deleted.

core-foundation-sys/src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010

1111
#![cfg_attr(all(feature="mac_os_10_7_support", feature="mac_os_10_8_features"), feature(linkage))] // back-compat requires weak linkage
1212

13+
// Link to CoreFoundation on any Apple device.
14+
//
15+
// We don't use `target_vendor` since that is going to be deprecated:
16+
// https://github.com/rust-lang/lang-team/issues/102
17+
#[cfg_attr(
18+
any(target_os = "macos", target_os = "ios", target_os = "tvos"),
19+
link(name = "CoreFoundation", kind = "framework")
20+
)]
21+
extern "C" {}
22+
1323
pub mod array;
1424
pub mod attributed_string;
1525
pub mod base;

0 commit comments

Comments
 (0)