From ad0a29d6bbcad3938a4c19be3609c2602ceb81ab Mon Sep 17 00:00:00 2001 From: Luis Cruz Date: Mon, 10 Jul 2023 16:41:49 +0100 Subject: [PATCH] fix: Add apple tvos support --- src/lib.rs | 2 ++ tests/test.rs | 30 ------------------------------ 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6257fa0df..25d9a6bd9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2620,6 +2620,8 @@ impl Build { clang.to_string() } else if target.contains("apple-watchos") { clang.to_string() + } else if target.contains("apple-tvos") { + clang.to_string() } else if target.contains("android") { autodetect_android_compiler(&target, &host, gnu, clang) } else if target.contains("cloudabi") { diff --git a/tests/test.rs b/tests/test.rs index f712c4368..1fd48dc04 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -507,33 +507,3 @@ fn gnu_apple_darwin() { cmd.must_not_have("-isysroot"); } } - -#[cfg(target_os = "macos")] -#[test] -fn apple_tvos() { - for target in &["aarch64-apple-tvos"] { - let test = Test::gnu(); - test.gcc() - .target(&target) - .host(&target) - .file("foo.c") - .compile("foo"); - - test.cmd(0).must_have("-mappletvos-version-min=9.0"); - } -} - -#[cfg(target_os = "macos")] -#[test] -fn apple_tvsimulator() { - for target in &["x86_64-apple-tvos"] { - let test = Test::gnu(); - test.gcc() - .target(&target) - .host(&target) - .file("foo.c") - .compile("foo"); - - test.cmd(0).must_have("-mappletvsimulator-version-min=9.0"); - } -}