mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
feat(build): propagate compiler flags from files to toolchain.cmake
This change improves build consistency across external projects integrated through CMake by ensuring that compiler flags defined in configuration files are passed correctly to the toolchain. It covers the majority of use cases, as external projects are typically also CMake-based. For projects that use a custom build system, users will still need to specify the required flags manually.
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
# avoid esp-clang "unused-command-line-argument" warning
|
||||
if(NOT (CMAKE_C_COMPILER_ID MATCHES "Clang") )
|
||||
set(compile_options "-nostartfiles")
|
||||
idf_build_set_property(COMPILE_OPTIONS "${compile_options}" APPEND)
|
||||
endif()
|
||||
Reference in New Issue
Block a user