mirror of https://github.com/ndarilek/tts-rs.git
Fix cargo fmt CI failure.
This commit is contained in:
parent
f3705a1856
commit
80d51e1bff
5
build.rs
5
build.rs
|
@ -1,7 +1,10 @@
|
||||||
fn main() {
|
fn main() {
|
||||||
if std::env::var("TARGET").unwrap().contains("-apple") {
|
if std::env::var("TARGET").unwrap().contains("-apple") {
|
||||||
println!("cargo:rustc-link-lib=framework=AVFoundation");
|
println!("cargo:rustc-link-lib=framework=AVFoundation");
|
||||||
if !std::env::var("CARGO_CFG_TARGET_OS").unwrap().contains("ios") {
|
if !std::env::var("CARGO_CFG_TARGET_OS")
|
||||||
|
.unwrap()
|
||||||
|
.contains("ios")
|
||||||
|
{
|
||||||
println!("cargo:rustc-link-lib=framework=AppKit");
|
println!("cargo:rustc-link-lib=framework=AppKit");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue