From 8fe363041b598f32d9f51b3ee04f6de8419b9a4e Mon Sep 17 00:00:00 2001 From: Marcin Maka Date: Fri, 25 Jan 2019 11:24:34 +0100 Subject: [PATCH] cmake: .x generation simplified Now runs with cmake for Windows. Could not spawn the process reading from the pipe with the cmake's path formatting. Signed-off-by: Marcin Maka --- src/arch/xtensa/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/xtensa/CMakeLists.txt b/src/arch/xtensa/CMakeLists.txt index f3db32e75..0bbe80350 100644 --- a/src/arch/xtensa/CMakeLists.txt +++ b/src/arch/xtensa/CMakeLists.txt @@ -107,7 +107,7 @@ function(sof_add_ld_script binary_name script_name) endforeach() add_custom_command(OUTPUT ${lds_out} - COMMAND cat ${lds_in} | ${CMAKE_C_COMPILER} -E -P ${iflags} - > ${lds_out} + COMMAND ${CMAKE_C_COMPILER} -E -P ${iflags} - < ${lds_in} > ${lds_out} DEPENDS ${lds_in} ${LINK_DEPS} genconfig WORKING_DIRECTORY ${PROJECT_BINARY_DIR} COMMENT "Generating linker script: ${lds_out}"