File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 6
6
# LICENSE file in the root directory of this source tree.
7
7
8
8
# Build size_test and show the size of it
9
- set -e
9
+ set -ex
10
10
11
11
# shellcheck source=/dev/null
12
12
source " $( dirname " ${BASH_SOURCE[0]} " ) /../.ci/scripts/utils.sh"
@@ -23,11 +23,17 @@ cmake_install_executorch_lib() {
23
23
update_tokenizers_git_submodule
24
24
local EXTRA_BUILD_ARGS=" ${@ } "
25
25
26
+ if [[ " $EXTRA_BUILD_ARGS " == * " -DEXECUTORCH_BUILD_ARM_BAREMETAL=ON" * ]]; then
27
+ local BUILD_DATA_LOADER=" OFF"
28
+ else
29
+ local BUILD_DATA_LOADER=ON
30
+ fi
26
31
CXXFLAGS=" $COMMON_CXXFLAGS " retry cmake -DBUCK2=" $BUCK2 " \
27
32
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
28
33
-DCMAKE_INSTALL_PREFIX=cmake-out \
29
34
-DCMAKE_BUILD_TYPE=Release \
30
35
-DEXECUTORCH_BUILD_EXECUTOR_RUNNER=OFF \
36
+ -DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=${BUILD_DATA_LOADER} \
31
37
-DEXECUTORCH_OPTIMIZE_SIZE=ON \
32
38
-DPYTHON_EXECUTABLE=" $PYTHON_EXECUTABLE " \
33
39
${EXTRA_BUILD_ARGS} \
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ check_required_options_on(
249
249
250
250
check_conflicting_options_on (
251
251
IF_ON EXECUTORCH_BUILD_ARM_BAREMETAL CONFLICTS_WITH
252
- EXECUTORCH_BUILD_EXTENSION_DATA_LOADER EXECUTORCH_BUILD_PTHREADPOOL
252
+ EXECUTORCH_BUILD_PTHREADPOOL
253
253
EXECUTORCH_BUILD_CPUINFO
254
254
)
255
255
You can’t perform that action at this time.
0 commit comments