Skip to content

Commit c62e0a2

Browse files
committed
[size_test] Add ET_HAVE_PREAD=0 in common cxx flags
1 parent 0394205 commit c62e0a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/build_size_test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ source "$(dirname "${BASH_SOURCE[0]}")/../.ci/scripts/utils.sh"
1313

1414
EXTRA_BUILD_ARGS="${@:-}"
1515
# TODO(#8357): Remove -Wno-int-in-bool-context
16-
COMMON_CXXFLAGS="-fno-exceptions -fno-rtti -Wall -Werror -Wno-int-in-bool-context"
16+
# TODO: Replace -ET_HAVE_PREAD=0 with a CMake option.
17+
# FileDataLoader used in the size_test breaks baremetal builds with pread when missing.
18+
COMMON_CXXFLAGS="-fno-exceptions -fno-rtti -Wall -Werror -Wno-int-in-bool-context -DET_HAVE_PREAD=0"
1719

1820
cmake_install_executorch_lib() {
1921
echo "Installing libexecutorch.a"

0 commit comments

Comments
 (0)