Skip to content

Commit 0ff871b

Browse files
mcr229facebook-github-bot
authored andcommitted
Update ExecuTorch cpuinfo generate-wrapper script
Summary: Current there is an error with cpuinfo build in executorch updating the following line in the generate-wrapper script and regenerating seems to fix Reviewed By: larryliu0820 Differential Revision: D48277357 fbshipit-source-id: dea334fda2ba6a4d002ef36d08f0cab0c6955214
1 parent 015954e commit 0ff871b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backends/xnnpack/third-party/cpuinfo-wrappers/arm/mach/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
#include <TargetConditionals.h>
55
#endif /* __APPLE__ */
66

7-
#if (defined(__arm__) || defined(__aarch64__)) && defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
7+
#if (defined(__arm__) || defined(__aarch64__)) && defined(TARGET_OS_MAC) && TARGET_OS_MAC
88
#include <arm/mach/init.c>
9-
#endif /* (defined(__arm__) || defined(__aarch64__)) && defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE */
9+
#endif /* (defined(__arm__) || defined(__aarch64__)) && defined(TARGET_OS_MAC) && TARGET_OS_MAC */

backends/xnnpack/third-party/generate-cpuinfo-wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"(defined(__arm__) || defined(__aarch64__)) && defined(__ANDROID__)": [
6464
"arm/android/properties.c",
6565
],
66-
"(defined(__arm__) || defined(__aarch64__)) && defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE": [
66+
"(defined(__arm__) || defined(__aarch64__)) && defined(TARGET_OS_MAC) && TARGET_OS_MAC": [
6767
"arm/mach/init.c",
6868
],}
6969

0 commit comments

Comments
 (0)