Skip to content

Commit 42a4b79

Browse files
authored
Merge pull request #456 from vladimir-ea/watch_os
2 parents 4f7ca0a + eb68e3a commit 42a4b79

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

build.rs

+9-2
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@ 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"
245+
&& target_os != "watchos"
246+
&& (target_vendor != "apple" || target_arch != "x86")
247+
{
245248
sources.extend(&[
246249
("__absvti2", "absvti2.c"),
247250
("__addvti3", "addvti3.c"),
@@ -318,7 +321,11 @@ mod c {
318321
}
319322
}
320323

321-
if target_arch == "arm" && target_os != "ios" && target_env != "msvc" {
324+
if target_arch == "arm"
325+
&& target_os != "ios"
326+
&& target_os != "watchos"
327+
&& target_env != "msvc"
328+
{
322329
sources.extend(&[
323330
("__aeabi_div0", "arm/aeabi_div0.c"),
324331
("__aeabi_drsub", "arm/aeabi_drsub.c"),

0 commit comments

Comments
 (0)