@@ -46,12 +46,20 @@ function(executorch_print_configuration_summary)
46
46
message (STATUS " EXECUTORCH_BUILD_ARM_BAREMETAL : "
47
47
"${EXECUTORCH_BUILD_ARM_BAREMETAL} "
48
48
)
49
+ message (STATUS " EXECUTORCH_BUILD_CADENCE : "
50
+ "${EXECUTORCH_BUILD_CADENCE} "
51
+ )
49
52
message (
50
53
STATUS
51
54
" EXECUTORCH_BUILD_COREML : ${EXECUTORCH_BUILD_COREML} "
52
55
)
53
- message (STATUS " EXECUTORCH_BUILD_KERNELS_CUSTOM : "
54
- "${EXECUTORCH_BUILD_KERNELS_CUSTOM} "
56
+ message (
57
+ STATUS
58
+ " EXECUTORCH_BUILD_CPUINFO : ${EXECUTORCH_BUILD_CPUINFO} "
59
+ )
60
+ message (
61
+ STATUS
62
+ " EXECUTORCH_BUILD_DEVTOOLS : ${EXECUTORCH_BUILD_DEVTOOLS} "
55
63
)
56
64
message (STATUS " EXECUTORCH_BUILD_EXECUTOR_RUNNER : "
57
65
"${EXECUTORCH_BUILD_EXECUTOR_RUNNER} "
@@ -68,7 +76,7 @@ function(executorch_print_configuration_summary)
68
76
message (STATUS " EXECUTORCH_BUILD_EXTENSION_TENSOR : "
69
77
"${EXECUTORCH_BUILD_EXTENSION_TENSOR} "
70
78
)
71
- message (STATUS " EXECUTORCH_BUILD_EXTENSION_TRAINING : "
79
+ message (STATUS " EXECUTORCH_BUILD_EXTENSION_TRAINING : "
72
80
"${EXECUTORCH_BUILD_EXTENSION_TRAINING} "
73
81
)
74
82
message (
@@ -79,22 +87,14 @@ function(executorch_print_configuration_summary)
79
87
STATUS
80
88
" EXECUTORCH_BUILD_GFLAGS : ${EXECUTORCH_BUILD_GFLAGS} "
81
89
)
82
- message (
83
- STATUS
84
- " EXECUTORCH_BUILD_GTESTS : ${EXECUTORCH_BUILD_GTESTS} "
85
- )
86
90
message (STATUS " EXECUTORCH_BUILD_HOST_TARGETS : "
87
91
"${EXECUTORCH_BUILD_HOST_TARGETS} "
88
92
)
89
- message (
90
- STATUS " EXECUTORCH_BUILD_MPS : ${EXECUTORCH_BUILD_MPS} "
91
- )
92
- message (
93
- STATUS
94
- " EXECUTORCH_BUILD_PYBIND : ${EXECUTORCH_BUILD_PYBIND} "
93
+ message (STATUS " EXECUTORCH_BUILD_KERNELS_CUSTOM : "
94
+ "${EXECUTORCH_BUILD_KERNELS_CUSTOM} "
95
95
)
96
- message (
97
- STATUS " EXECUTORCH_BUILD_QNN : ${EXECUTORCH_BUILD_QNN } "
96
+ message (STATUS " EXECUTORCH_BUILD_KERNELS_CUSTOM_AOT : "
97
+ " ${EXECUTORCH_BUILD_KERNELS_CUSTOM_AOT } "
98
98
)
99
99
message (STATUS " EXECUTORCH_BUILD_KERNELS_OPTIMIZED : "
100
100
"${EXECUTORCH_BUILD_KERNELS_OPTIMIZED} "
@@ -103,27 +103,38 @@ function(executorch_print_configuration_summary)
103
103
"${EXECUTORCH_BUILD_KERNELS_QUANTIZED} "
104
104
)
105
105
message (
106
- STATUS " EXECUTORCH_BUILD_DEVTOOLS : ${EXECUTORCH_BUILD_DEVTOOLS } "
106
+ STATUS " EXECUTORCH_BUILD_MPS : ${EXECUTORCH_BUILD_MPS } "
107
107
)
108
108
message (
109
109
STATUS
110
- " EXECUTORCH_BUILD_SIZE_TEST : ${EXECUTORCH_BUILD_SIZE_TEST } "
110
+ " EXECUTORCH_BUILD_NEURON : ${EXECUTORCH_BUILD_NEURON } "
111
111
)
112
112
message (
113
113
STATUS
114
- " EXECUTORCH_BUILD_XNNPACK : ${EXECUTORCH_BUILD_XNNPACK } "
114
+ " EXECUTORCH_BUILD_PTHREADPOOL : ${EXECUTORCH_BUILD_PTHREADPOOL } "
115
115
)
116
116
message (
117
117
STATUS
118
- " EXECUTORCH_BUILD_VULKAN : ${EXECUTORCH_BUILD_VULKAN} "
118
+ " EXECUTORCH_BUILD_PYBIND : ${EXECUTORCH_BUILD_PYBIND} "
119
+ )
120
+ message (
121
+ STATUS " EXECUTORCH_BUILD_QNN : ${EXECUTORCH_BUILD_QNN} "
119
122
)
120
123
message (
121
124
STATUS
122
- " EXECUTORCH_BUILD_PTHREADPOOL : ${EXECUTORCH_BUILD_PTHREADPOOL } "
125
+ " EXECUTORCH_BUILD_SIZE_TEST : ${EXECUTORCH_BUILD_SIZE_TEST } "
123
126
)
124
127
message (
125
128
STATUS
126
- " EXECUTORCH_BUILD_CPUINFO : ${EXECUTORCH_BUILD_CPUINFO} "
129
+ " EXECUTORCH_BUILD_TESTS : ${EXECUTORCH_BUILD_TESTS} "
130
+ )
131
+ message (
132
+ STATUS
133
+ " EXECUTORCH_BUILD_VULKAN : ${EXECUTORCH_BUILD_VULKAN} "
134
+ )
135
+ message (
136
+ STATUS
137
+ " EXECUTORCH_BUILD_XNNPACK : ${EXECUTORCH_BUILD_XNNPACK} "
127
138
)
128
139
129
140
endfunction ()
@@ -193,7 +204,10 @@ function(extract_sources sources_file)
193
204
elseif ("${ANDROID_ABI} " STREQUAL "x86_64" )
194
205
set (target_platforms_arg "--target-platforms=shim//:android-x86_64" )
195
206
else ()
196
- message (FATAL_ERROR "Unsupported ANDROID_ABI setting ${ANDROID_ABI} . Please add it here!" )
207
+ message (
208
+ FATAL_ERROR
209
+ "Unsupported ANDROID_ABI setting ${ANDROID_ABI} . Please add it here!"
210
+ )
197
211
endif ()
198
212
endif ()
199
213
execute_process (
@@ -269,18 +283,20 @@ function(resolve_buck2)
269
283
endif ()
270
284
endif ()
271
285
272
- # Update the var in the parent scope. Note that this does not modify our
273
- # local $BUCK2 value.
274
- set (BUCK2 "${buck2} " PARENT_SCOPE )
286
+ # Update the var in the parent scope. Note that this does not modify our local
287
+ # $BUCK2 value.
288
+ set (BUCK2
289
+ "${buck2} "
290
+ PARENT_SCOPE
291
+ )
275
292
276
293
# The buck2 daemon can get stuck. Killing it can help.
277
294
message (STATUS "Killing buck2 daemon" )
278
295
execute_process (
279
296
# Note that we need to use the local buck2 variable. BUCK2 is only set in
280
297
# the parent scope, and can still be empty in this scope.
281
298
COMMAND "${buck2} killall"
282
- WORKING_DIRECTORY ${executorch_root}
283
- COMMAND_ECHO STDOUT
299
+ WORKING_DIRECTORY ${executorch_root} COMMAND_ECHO STDOUT
284
300
)
285
301
endfunction ()
286
302
0 commit comments