From c384ea99b1666531dc20b47985dd85ac26c46cff Mon Sep 17 00:00:00 2001 From: Yury Date: Sun, 29 Dec 2024 12:31:02 +0300 Subject: [PATCH] core motion is available on watchos --- cidre/build.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cidre/build.rs b/cidre/build.rs index 53048b16..e1c493db 100644 --- a/cidre/build.rs +++ b/cidre/build.rs @@ -304,12 +304,16 @@ fn main() { } } + if sdk != "appletvos" && sdk != "appletvsimulator" { + add_xc_target_args_from_features(&mut xc_target_args, &["core_motion"]); + } + if sdk != "appletvos" && sdk != "appletvsimulator" && sdk != "watchos" && sdk != "watchsimulator" { - add_xc_target_args_from_features(&mut xc_target_args, &["wk", "core_motion"]); + add_xc_target_args_from_features(&mut xc_target_args, &["wk"]); } if [