diff options
-rw-r--r-- | zephyr/CMakeLists.txt | 6 | ||||
-rw-r--r-- | zephyr/zmake/zmake/zmake.py | 4 |
2 files changed, 2 insertions, 8 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 63dc674b05..d27cd63597 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -45,12 +45,6 @@ if(DEFINED CONFIG_PLATFORM_EC) # with Zephyr builds only. zephyr_compile_definitions("CONFIG_ZEPHYR") - # Force compiler warnings to generate errors - option(ALLOW_WARNINGS "Do not treat warnings as errors") - if (NOT ALLOW_WARNINGS) - zephyr_compile_options(-Werror) - endif() - include(fpu.cmake) # When LTO is enabled, enable only for the "app" library, which compiles diff --git a/zephyr/zmake/zmake/zmake.py b/zephyr/zmake/zmake/zmake.py index 4c6d840535..7457a16740 100644 --- a/zephyr/zmake/zmake/zmake.py +++ b/zephyr/zmake/zmake/zmake.py @@ -521,9 +521,9 @@ class Zmake: base_config |= zmake.build_config.BuildConfig( kconfig_defs={"CONFIG_COMPILER_SAVE_TEMPS": "y"} ) - if allow_warnings: + if not allow_warnings: base_config |= zmake.build_config.BuildConfig( - cmake_defs={"ALLOW_WARNINGS": "ON"} + kconfig_defs={"CONFIG_COMPILER_WARNINGS_AS_ERRORS": "y"} ) if extra_cflags: base_config |= zmake.build_config.BuildConfig( |