crypto/mbedtls: disable optimize on sim platform

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-02-22 17:28:35 +08:00 committed by Xiang Xiao
parent 7f67ee8c88
commit 7cc325ae83

View File

@ -38,6 +38,12 @@ MBEDTLS_UNPACKPROGDIR = $(MBEDTLS_UNPACKNAME)$(DELIM)programs
# This lets Mbed TLS better use some of the POSIX features we have
CFLAGS += ${DEFINE_PREFIX}__unix__
library/bignum.c_CFLAGS += -fno-lto
ifeq ($(CONFIG_ARCH_SIM),y)
CFLAGS += -O0
endif
CSRCS = $(wildcard $(MBEDTLS_UNPACKLIBDIR)$(DELIM)*.c)
$(MBEDTLS_ZIP):