mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tools: strip trailing whitespaces/newline from dump_machine
In components/xtensa/project_include.cmake ${CMAKE_C_COMPILER} -dumpmachine is called, but the output has newline. Before ---8<-- -- Compiler supported targets: xtensa-esp32s3-elf -- App "blink" version: 1.2.3 ---8<-- After ---8<-- -- Compiler supported targets: xtensa-esp32s3-elf -- App "blink" version: 1.2.3 ---8<-- Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
parent
1f06806271
commit
b3998f0f0c
@ -10,6 +10,7 @@ else()
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_C_COMPILER} -dumpmachine
|
||||
OUTPUT_VARIABLE dump_machine
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
endif()
|
||||
message(STATUS "Compiler supported targets: ${dump_machine}")
|
||||
|
Loading…
Reference in New Issue
Block a user