Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable cargo doc/check on non-Darwin platforms #105

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Enable cargo doc/check on non-Darwin platforms

  • Loading branch information
JohnColanduoni committed Jul 12, 2017
commit a7e14eb02dcb56098a9e2073a0523009c1f3ae5e
@@ -7,6 +7,12 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::env;

fn main() {
println!("cargo:rustc-link-lib=framework=CoreFoundation");
let target = env::var("TARGET").unwrap();

if target.ends_with("apple-darwin") || target.ends_with("apple-ios") {
println!("cargo:rustc-link-lib=framework=CoreFoundation");
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.