mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(ci): make Windows build-system CI green on v5.4
- Disable test_cli_installer_win (when: never), matching release/v5.5
- Download known-failure cases and pass --ignore-result-files on Windows build-system pytest
- Force Ninja response files on Windows hosts via CMAKE_NINJA_FORCE_RESPONSE_FILE in utilities.cmake (backport of 2e5d930e)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
# Windows CreateProcess enforces a short command line (~32k). IDF compile lines can be
|
||||
# huge (includes, reproducible-build prefix maps, etc.). Tell the Ninja generator to
|
||||
# pass compiler arguments via response files (CMake 3.15+).
|
||||
# Included from every chip toolchain-*.cmake so this applies on Windows Ninja builds.
|
||||
# Backport of CMAKE_NINJA_FORCE_RESPONSE_FILE from master (2e5d930e / !46653).
|
||||
if(CMAKE_HOST_WIN32 AND CMAKE_GENERATOR MATCHES "Ninja"
|
||||
AND NOT DEFINED CACHE{CMAKE_NINJA_FORCE_RESPONSE_FILE})
|
||||
set(CMAKE_NINJA_FORCE_RESPONSE_FILE ON CACHE BOOL
|
||||
"Use Ninja response files on Windows hosts (avoid CreateProcess command-line limit).")
|
||||
endif()
|
||||
|
||||
# set_default
|
||||
#
|
||||
# Define a variable to a default value if otherwise unset.
|
||||
@@ -157,7 +168,7 @@ function(target_linker_script target deptype scriptfiles)
|
||||
# https://cmake.org/cmake/help/latest/command/target_link_options.html#option-de-duplication
|
||||
target_link_options("${target}" "${deptype}" "SHELL:-T ${scriptname}")
|
||||
|
||||
# Note: In ESP-IDF, most targets are libraries and libary LINK_DEPENDS don't propagate to
|
||||
# Note: In ESP-IDF, most targets are libraries and library LINK_DEPENDS don't propagate to
|
||||
# executable(s) the library is linked to. Since CMake 3.13, INTERFACE_LINK_DEPENDS is
|
||||
# available to solve this. However, when GNU Make generator is used, this property also
|
||||
# propagates INTERFACE_LINK_DEPENDS dependencies to other static libraries.
|
||||
@@ -225,7 +236,7 @@ endfunction()
|
||||
# fail_target
|
||||
#
|
||||
# Creates a phony target which fails when invoked. This is used when the necessary conditions
|
||||
# for a target are not met, such as configuration. Rather than ommitting the target altogether,
|
||||
# for a target are not met, such as configuration. Rather than omitting the target altogether,
|
||||
# we fail execution with a helpful message.
|
||||
function(fail_target target_name message_line0)
|
||||
idf_build_get_property(idf_path IDF_PATH)
|
||||
@@ -354,7 +365,7 @@ endfunction()
|
||||
|
||||
# add_deprecated_target_alias
|
||||
#
|
||||
# Creates an alias for exising target and shows deprectation warning
|
||||
# Creates an alias for existing target and shows deprecation warning
|
||||
function(add_deprecated_target_alias old_target new_target)
|
||||
add_custom_target(${old_target}
|
||||
# `COMMAND` is important to print the `COMMENT` message at the end of the target action.
|
||||
|
||||
Reference in New Issue
Block a user