Skip to content

Commit d11f1ed

Browse files
committed
[watch_os] add watchOS
1 parent 4f7ca0a commit d11f1ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ mod c {
241241

242242
// On iOS and 32-bit OSX these are all just empty intrinsics, no need to
243243
// include them.
244-
if target_os != "ios" && (target_vendor != "apple" || target_arch != "x86") {
244+
if target_os != "ios" && target_os != "watchos" && (target_vendor != "apple" || target_arch != "x86") {
245245
sources.extend(&[
246246
("__absvti2", "absvti2.c"),
247247
("__addvti3", "addvti3.c"),
@@ -318,7 +318,7 @@ mod c {
318318
}
319319
}
320320

321-
if target_arch == "arm" && target_os != "ios" && target_env != "msvc" {
321+
if target_arch == "arm" && target_os != "ios" && target_os != "watchos" && target_env != "msvc" {
322322
sources.extend(&[
323323
("__aeabi_div0", "arm/aeabi_div0.c"),
324324
("__aeabi_drsub", "arm/aeabi_drsub.c"),

0 commit comments

Comments
 (0)