Skip to content

Commit c932ebd

Browse files
mcr229facebook-github-bot
authored andcommitted
Update ExecuTorch cpuinfo generate-wrapper script (#58)
Summary: Pull Request resolved: #58 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: 2a7e63d78b9da2cca85281b07d9d0d7b38fec65f
1 parent 060bb5b commit c932ebd

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

+2-2
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

+1-1
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)