mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-03 23:48:59 +08:00
Merge branch 'bugfix/cmake_script_of_newlib' into 'master'
newlib: remove library gcc declare See merge request sdk/ESP8266_RTOS_SDK!1129
This commit is contained in:
@ -26,7 +26,7 @@ target_compile_definitions(${COMPONENT_LIB} PUBLIC
|
|||||||
|
|
||||||
target_link_libraries(${COMPONENT_LIB} PUBLIC "-L ${CMAKE_CURRENT_SOURCE_DIR}/newlib/lib")
|
target_link_libraries(${COMPONENT_LIB} PUBLIC "-L ${CMAKE_CURRENT_SOURCE_DIR}/newlib/lib")
|
||||||
|
|
||||||
set(blobs "${LIBC}" "${LIBM}" "gcc")
|
set(blobs "${LIBC}" "${LIBM}")
|
||||||
foreach(blob ${blobs})
|
foreach(blob ${blobs})
|
||||||
add_library(${blob} STATIC IMPORTED)
|
add_library(${blob} STATIC IMPORTED)
|
||||||
set_property(TARGET ${blob} PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/newlib/lib/lib${blob}.a)
|
set_property(TARGET ${blob} PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/newlib/lib/lib${blob}.a)
|
||||||
|
Reference in New Issue
Block a user