Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ project (dmod
VERSION ${dmod_VERSION_MAJOR}.${dmod_VERSION_MINOR}
DESCRIPTION "Library for managing of dynamic modules")

# ===========================================================================
# Enable Response Files (fix "argument list too long" error)
# ===========================================================================
# Enable response files to handle very long compiler command lines (common with ESP-IDF)
if(CMAKE_C_RESPONSE_FILE_LINK_FLAG)
# Response files already configured
elseif(CROSS_COMPILE MATCHES "xtensa-esp.*-elf")
# For Xtensa ESP toolchain, explicitly enable response files
set(CMAKE_C_RESPONSE_FILE_LINK_FLAG "@")
set(CMAKE_CXX_RESPONSE_FILE_LINK_FLAG "@")
endif()

# ===========================================================================
# Configuration file
# ===========================================================================
Expand Down
Loading