diff --git a/backends/arm/CMakeLists.txt b/backends/arm/CMakeLists.txt index 39a51c56b14..b5e76e778a5 100644 --- a/backends/arm/CMakeLists.txt +++ b/backends/arm/CMakeLists.txt @@ -12,6 +12,8 @@ if(NOT EXECUTORCH_ROOT) set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..) endif() +add_compile_options("-Wall" "-Werror") + include(${EXECUTORCH_ROOT}/tools/cmake/Utils.cmake) set(_common_include_directories ${EXECUTORCH_ROOT}/.. ${EXECUTORCH_ROOT}/runtime/core/portable_type/c10) diff --git a/examples/arm/CMakeLists.txt b/examples/arm/CMakeLists.txt index 4bae20d2c1f..58466faeca5 100644 --- a/examples/arm/CMakeLists.txt +++ b/examples/arm/CMakeLists.txt @@ -29,6 +29,8 @@ endif() set(_common_compile_options -Wno-deprecated-declarations -fPIC) +add_compile_options("-Wall" "-Werror") + # Let files say "include ". set(_common_include_directories ${EXECUTORCH_ROOT}/..)