diff --git a/cmake/compiler/arcmwdt/compiler_flags.cmake b/cmake/compiler/arcmwdt/compiler_flags.cmake index 5383016795..5d2be413dc 100644 --- a/cmake/compiler/arcmwdt/compiler_flags.cmake +++ b/cmake/compiler/arcmwdt/compiler_flags.cmake @@ -1,5 +1,3 @@ -set_property(GLOBAL PROPERTY CSTD gnu99) - # List the warnings that are not supported for C++ compilations list(APPEND CXX_EXCLUDED_OPTIONS -Werror=implicit-int diff --git a/cmake/toolchain/arcmwdt/Kconfig b/cmake/toolchain/arcmwdt/Kconfig index c2ef35d3c7..3f70536b36 100644 --- a/cmake/toolchain/arcmwdt/Kconfig +++ b/cmake/toolchain/arcmwdt/Kconfig @@ -4,3 +4,7 @@ config TOOLCHAIN_ARCMWDT_SUPPORTS_THREAD_LOCAL_STORAGE def_bool y select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE + +config TOOLCHAIN_ARCMWDT_SUPPORTS_GNU_EXTENSIONS + def_bool y + select TOOLCHAIN_SUPPORTS_GNU_EXTENSIONS