arcmwdt: Enable GNU C Extensions

Replace the global CSTD property with a Kconfig symbol selection.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-04-03 11:16:00 +02:00 committed by Fabio Baltieri
parent ff6985766b
commit cb459f12ba
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,3 @@
set_property(GLOBAL PROPERTY CSTD gnu99)
# List the warnings that are not supported for C++ compilations # List the warnings that are not supported for C++ compilations
list(APPEND CXX_EXCLUDED_OPTIONS list(APPEND CXX_EXCLUDED_OPTIONS
-Werror=implicit-int -Werror=implicit-int

View file

@ -4,3 +4,7 @@
config TOOLCHAIN_ARCMWDT_SUPPORTS_THREAD_LOCAL_STORAGE config TOOLCHAIN_ARCMWDT_SUPPORTS_THREAD_LOCAL_STORAGE
def_bool y def_bool y
select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
config TOOLCHAIN_ARCMWDT_SUPPORTS_GNU_EXTENSIONS
def_bool y
select TOOLCHAIN_SUPPORTS_GNU_EXTENSIONS