Skip to content

Commit 0afcc02

Browse files
committed
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
2 parents c4bfb8a + 63b7ae9 commit 0afcc02

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

components/esp_coex/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
idf_build_get_property(idf_target IDF_TARGET)
22

3+
set(srcs "")
4+
35
if(${idf_target} STREQUAL "linux")
46
return() # This component is not supported by the POSIX/Linux simulator
57
endif()

components/esp_common/project_include.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#
22
# Warn if the toolchain version doesn't match
33
#
4+
idf_build_get_property(target IDF_TARGET)
5+
46
if(NOT (${target} STREQUAL "linux" OR CMAKE_C_COMPILER_ID MATCHES "Clang"))
57
execute_process(
68
COMMAND ${CMAKE_C_COMPILER} -dumpmachine

components/lwip/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
idf_build_get_property(target IDF_TARGET)
2+
set(srcs "")
23

34
if(CONFIG_LWIP_ENABLE)
45
if(NOT ${target} STREQUAL "linux")

components/newlib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ else()
6666
"src/picolibc/open_memstream.c")
6767
endif()
6868

69+
set(ldfragments "")
6970
list(APPEND ldfragments "src/newlib.lf" "src/system_libs.lf")
7071

7172
if(CONFIG_SPIRAM_CACHE_WORKAROUND)

components/vfs/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ if(${target} STREQUAL "linux")
77
return()
88
endif()
99

10+
set(sources "")
11+
1012
list(APPEND sources "vfs.c"
1113
"vfs_eventfd.c"
1214
"vfs_semihost.c"

0 commit comments

Comments
 (0)