Merge branch 'bugfix/calloc_recursive' into 'master'

newlib: disable some optimizations for syscalls.c

See merge request idf/esp-idf!3774
This commit is contained in:
Ivan Grokhotkov 2018-11-22 15:24:17 +08:00
commit 09a01f68ba
2 changed files with 4 additions and 0 deletions

View file

@ -30,3 +30,5 @@ register_component()
target_link_libraries(newlib "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib")
target_link_libraries(newlib ${LIBC} ${LIBM})
set_source_files_properties(syscalls.c PROPERTIES COMPILE_FLAGS -fno-builtin)

View file

@ -20,3 +20,5 @@ COMPONENT_ADD_LDFLAGS := $(LIBC_PATH) $(LIBM_PATH) -lnewlib
COMPONENT_ADD_LINKER_DEPS := $(LIBC_PATH) $(LIBM_PATH)
COMPONENT_ADD_INCLUDEDIRS := platform_include include
syscalls.o: CFLAGS += -fno-builtin