Skip to content

Commit e0f20e4

Browse files
committed
Update
[ghstack-poisoned]
1 parent 1ae275b commit e0f20e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/build_size_test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@ cmake_install_executorch_lib() {
2626
CXXFLAGS="$COMMON_CXXFLAGS" retry cmake -DBUCK2="$BUCK2" \
2727
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
2828
-DCMAKE_INSTALL_PREFIX=cmake-out \
29-
-DCMAKE_BUILD_TYPE=Release \
29+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
3030
-DEXECUTORCH_BUILD_EXECUTOR_RUNNER=OFF \
3131
-DEXECUTORCH_OPTIMIZE_SIZE=ON \
3232
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" \
3333
${EXTRA_BUILD_ARGS} \
3434
-Bcmake-out .
35-
cmake --build cmake-out -j9 --target install --config Release
35+
cmake --build cmake-out -j9 --target install --config RelWithDebInfo
3636
}
3737

3838
test_cmake_size_test() {
39-
CXXFLAGS="$COMMON_CXXFLAGS" retry cmake -DCMAKE_BUILD_TYPE=Release \
39+
CXXFLAGS="$COMMON_CXXFLAGS" retry cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
4040
-DCMAKE_INSTALL_PREFIX=cmake-out \
4141
${EXTRA_BUILD_ARGS} \
4242
-Bcmake-out/test test
4343

4444
echo "Build size test"
45-
cmake --build cmake-out/test -j9 --config Release
45+
cmake --build cmake-out/test -j9 --config RelWithDebInfo
4646

4747
echo 'ExecuTorch with no ops binary size, unstripped:'
4848
ls -al cmake-out/test/size_test

0 commit comments

Comments
 (0)