Skip to content

Commit ad0a29d

Browse files
committed
fix: Add apple tvos support
1 parent 5b91c7b commit ad0a29d

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2620,6 +2620,8 @@ impl Build {
26202620
clang.to_string()
26212621
} else if target.contains("apple-watchos") {
26222622
clang.to_string()
2623+
} else if target.contains("apple-tvos") {
2624+
clang.to_string()
26232625
} else if target.contains("android") {
26242626
autodetect_android_compiler(&target, &host, gnu, clang)
26252627
} else if target.contains("cloudabi") {

tests/test.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -507,33 +507,3 @@ fn gnu_apple_darwin() {
507507
cmd.must_not_have("-isysroot");
508508
}
509509
}
510-
511-
#[cfg(target_os = "macos")]
512-
#[test]
513-
fn apple_tvos() {
514-
for target in &["aarch64-apple-tvos"] {
515-
let test = Test::gnu();
516-
test.gcc()
517-
.target(&target)
518-
.host(&target)
519-
.file("foo.c")
520-
.compile("foo");
521-
522-
test.cmd(0).must_have("-mappletvos-version-min=9.0");
523-
}
524-
}
525-
526-
#[cfg(target_os = "macos")]
527-
#[test]
528-
fn apple_tvsimulator() {
529-
for target in &["x86_64-apple-tvos"] {
530-
let test = Test::gnu();
531-
test.gcc()
532-
.target(&target)
533-
.host(&target)
534-
.file("foo.c")
535-
.compile("foo");
536-
537-
test.cmd(0).must_have("-mappletvsimulator-version-min=9.0");
538-
}
539-
}

0 commit comments

Comments
 (0)