[watch_os] add watchOS

This commit is contained in:
Vladimir Michael Eatwell 2021-06-17 17:40:45 +01:00
parent 96339ec86d
commit 002fc52f00

View file

@ -241,7 +241,7 @@ mod c {
// On iOS and 32-bit OSX these are all just empty intrinsics, no need to
// include them.
if target_os != "ios" && (target_vendor != "apple" || target_arch != "x86") {
if target_os != "ios" && target_os != "watchos" && (target_vendor != "apple" || target_arch != "x86") {
sources.extend(&[
("__absvti2", "absvti2.c"),
("__addvti3", "addvti3.c"),
@ -318,7 +318,7 @@ mod c {
}
}
if target_arch == "arm" && target_os != "ios" && target_env != "msvc" {
if target_arch == "arm" && target_os != "ios" && target_os != "watchos" && target_env != "msvc" {
sources.extend(&[
("__aeabi_div0", "arm/aeabi_div0.c"),
("__aeabi_drsub", "arm/aeabi_drsub.c"),