Skip to content

Commit 7d369e3

Browse files
mcr229facebook-github-bot
authored andcommitted
Update ExecuTorch third-party cpuinfo
Differential Revision: D48277357 fbshipit-source-id: 0070d7bc1ac09987ffb0612977f37dcea314dff3
1 parent 0b317e5 commit 7d369e3

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
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 */
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* Auto-generated by generate-wrappers.py script. Do not modify */
2+
3+
#ifdef __APPLE__
4+
#include <TargetConditionals.h>
5+
#endif /* __APPLE__ */
6+
7+
#include <log.c>

backends/xnnpack/third-party/cpuinfo_defs.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def define_cpuinfo_and_clog():
2222
"cpuinfo-wrappers/linux/multiline.c",
2323
"cpuinfo-wrappers/linux/processors.c",
2424
"cpuinfo-wrappers/linux/smallfile.c",
25+
"cpuinfo-wrappers/log.c",
2526
"cpuinfo-wrappers/mach/topology.c",
2627
"cpuinfo-wrappers/x86/cache/descriptor.c",
2728
"cpuinfo-wrappers/x86/cache/deterministic.c",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"init.c",
1010
"api.c",
1111
"cache.c",
12+
"log.c",
1213
],
1314
"defined(__linux__)": [
1415
"linux/multiline.c",
@@ -63,7 +64,7 @@
6364
"(defined(__arm__) || defined(__aarch64__)) && defined(__ANDROID__)": [
6465
"arm/android/properties.c",
6566
],
66-
"(defined(__arm__) || defined(__aarch64__)) && defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE": [
67+
"(defined(__arm__) || defined(__aarch64__)) && defined(TARGET_OS_MAC) && TARGET_OS_MAC": [
6768
"arm/mach/init.c",
6869
],}
6970

0 commit comments

Comments
 (0)