mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
Merge branch 'fix/buildv2_fault_assert_opt_check' into 'master'
fix(esp_security): use EXECUTABLE in fault_assert_opt_check See merge request espressif/esp-idf!52640
This commit is contained in:
@@ -11,9 +11,10 @@ project(fault_assert_opt_check)
|
||||
|
||||
# Regression guard: fail the build if ESP_FAULT_ASSERT() gets optimized away.
|
||||
idf_build_get_property(python PYTHON)
|
||||
idf_build_get_property(elf EXECUTABLE)
|
||||
add_custom_command(
|
||||
TARGET ${CMAKE_PROJECT_NAME}.elf POST_BUILD
|
||||
TARGET ${elf} POST_BUILD
|
||||
COMMAND ${python} "${CMAKE_CURRENT_SOURCE_DIR}/check_fault_asserts.py"
|
||||
"$<TARGET_FILE:${CMAKE_PROJECT_NAME}.elf>" "${CMAKE_OBJDUMP}"
|
||||
"$<TARGET_FILE:${elf}>" "${CMAKE_OBJDUMP}"
|
||||
COMMENT "Verifying ESP_FAULT_ASSERT() survived optimization"
|
||||
VERBATIM)
|
||||
|
||||
Reference in New Issue
Block a user