Skip to content

Commit 5682316

Browse files
committed
Make sure size_test CI uses -Wall -Werror
1 parent c361431 commit 5682316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/build_size_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cmake_install_executorch_lib() {
1515
echo "Installing libexecutorch.a"
1616
clean_executorch_install_folders
1717

18-
CXXFLAGS="-fno-exceptions -fno-rtti" retry cmake -DBUCK2="$BUCK2" \
18+
CXXFLAGS="-fno-exceptions -fno-rtti -Wall -Werror" retry cmake -DBUCK2="$BUCK2" \
1919
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
2020
-DCMAKE_INSTALL_PREFIX=cmake-out \
2121
-DCMAKE_BUILD_TYPE=Release \
@@ -27,7 +27,7 @@ cmake_install_executorch_lib() {
2727
}
2828

2929
test_cmake_size_test() {
30-
CXXFLAGS="-fno-exceptions -fno-rtti" retry cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=cmake-out -Bcmake-out/test test
30+
CXXFLAGS="-fno-exceptions -fno-rtti -Wall -Werror" retry cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=cmake-out -Bcmake-out/test test
3131

3232
echo "Build size test"
3333
cmake --build cmake-out/test -j9 --config Release

0 commit comments

Comments
 (0)