mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
Merge branch 'fix/cmake_uninitialized_vars' into 'master'
fix(build): do not rely on uninitialized variables and variables set in parent scope See merge request espressif/esp-idf!39615
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
idf_build_get_property(idf_target IDF_TARGET)
|
idf_build_get_property(idf_target IDF_TARGET)
|
||||||
|
|
||||||
|
set(srcs "")
|
||||||
|
|
||||||
if(${idf_target} STREQUAL "linux")
|
if(${idf_target} STREQUAL "linux")
|
||||||
return() # This component is not supported by the POSIX/Linux simulator
|
return() # This component is not supported by the POSIX/Linux simulator
|
||||||
endif()
|
endif()
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
#
|
#
|
||||||
# Warn if the toolchain version doesn't match
|
# Warn if the toolchain version doesn't match
|
||||||
#
|
#
|
||||||
|
idf_build_get_property(target IDF_TARGET)
|
||||||
|
|
||||||
if(NOT (${target} STREQUAL "linux" OR CMAKE_C_COMPILER_ID MATCHES "Clang"))
|
if(NOT (${target} STREQUAL "linux" OR CMAKE_C_COMPILER_ID MATCHES "Clang"))
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${CMAKE_C_COMPILER} -dumpmachine
|
COMMAND ${CMAKE_C_COMPILER} -dumpmachine
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
idf_build_get_property(target IDF_TARGET)
|
idf_build_get_property(target IDF_TARGET)
|
||||||
|
set(srcs "")
|
||||||
|
|
||||||
if(CONFIG_LWIP_ENABLE)
|
if(CONFIG_LWIP_ENABLE)
|
||||||
if(NOT ${target} STREQUAL "linux")
|
if(NOT ${target} STREQUAL "linux")
|
||||||
|
@@ -66,6 +66,7 @@ else()
|
|||||||
"src/picolibc/open_memstream.c")
|
"src/picolibc/open_memstream.c")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(ldfragments "")
|
||||||
list(APPEND ldfragments "src/newlib.lf" "src/system_libs.lf")
|
list(APPEND ldfragments "src/newlib.lf" "src/system_libs.lf")
|
||||||
|
|
||||||
if(CONFIG_SPIRAM_CACHE_WORKAROUND)
|
if(CONFIG_SPIRAM_CACHE_WORKAROUND)
|
||||||
|
@@ -7,6 +7,8 @@ if(${target} STREQUAL "linux")
|
|||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(sources "")
|
||||||
|
|
||||||
list(APPEND sources "vfs.c"
|
list(APPEND sources "vfs.c"
|
||||||
"vfs_eventfd.c"
|
"vfs_eventfd.c"
|
||||||
"vfs_semihost.c"
|
"vfs_semihost.c"
|
||||||
|
Reference in New Issue
Block a user