Skip to content

Commit a12a005

Browse files
authored
Arm backend: Build c/c++ code with -Wall -Werror (#11815)
This allows better detection of bad code. Signed-off-by: Zingo Andersen <[email protected]>
1 parent 63b047b commit a12a005

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

backends/arm/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if(NOT EXECUTORCH_ROOT)
1212
set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
1313
endif()
1414

15+
add_compile_options("-Wall" "-Werror")
16+
1517
include(${EXECUTORCH_ROOT}/tools/cmake/Utils.cmake)
1618

1719
set(_common_include_directories ${EXECUTORCH_ROOT}/.. ${EXECUTORCH_ROOT}/runtime/core/portable_type/c10)

examples/arm/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ endif()
2929

3030
set(_common_compile_options -Wno-deprecated-declarations -fPIC)
3131

32+
add_compile_options("-Wall" "-Werror")
33+
3234
# Let files say "include <executorch/path/to/header.h>".
3335
set(_common_include_directories ${EXECUTORCH_ROOT}/..)
3436

0 commit comments

Comments
 (0)