From b3998f0f0c4e21e633d768cc272b3640d3825bbd Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Tue, 30 May 2023 13:35:10 +0200 Subject: [PATCH] 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 --- components/xtensa/project_include.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/components/xtensa/project_include.cmake b/components/xtensa/project_include.cmake index 687d424749..f0c5bee866 100644 --- a/components/xtensa/project_include.cmake +++ b/components/xtensa/project_include.cmake @@ -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}")