From c2c5f108e97e731251358f89f40b0e4bea4f0ce9 Mon Sep 17 00:00:00 2001 From: Evgeniy Paltsev Date: Thu, 11 Jul 2024 03:03:11 +0100 Subject: [PATCH] toolchain: arcmwdt: don't set STDC_LIB_EXT1 macro in case of minimal libc Don't provide __STDC_LIB_EXT1__ macro (Extensions to the C Library, Part 1: Bounds-checking interfaces) if we use minimal libc - as we don't have functions from this extension implemented in minimal libc. Signed-off-by: Evgeniy Paltsev Signed-off-by: Eugeniy Paltsev --- cmake/compiler/arcmwdt/compiler_flags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/compiler/arcmwdt/compiler_flags.cmake b/cmake/compiler/arcmwdt/compiler_flags.cmake index 7de892c7ee6..6b334c1fe84 100644 --- a/cmake/compiler/arcmwdt/compiler_flags.cmake +++ b/cmake/compiler/arcmwdt/compiler_flags.cmake @@ -116,7 +116,7 @@ set_compiler_property(PROPERTY warning_error_misra_sane -Werror=vla) set_compiler_property(PROPERTY cstd -std=) if (NOT CONFIG_ARCMWDT_LIBC) - set_compiler_property(PROPERTY nostdinc -Hno_default_include -Hnoarcexlib) + set_compiler_property(PROPERTY nostdinc -Hno_default_include -Hnoarcexlib -U__STDC_LIB_EXT1__) set_compiler_property(APPEND PROPERTY nostdinc_include ${NOSTDINC}) endif()