Skip to content

Commit 9e6386c

Browse files
LuDudaDamian-Nordic
authored andcommitted
[nrf noup] use CMake command instead of bash in build script
This commit fixes building on Windows PowerShell by removing usage of "bash" command. Signed-off-by: Lukasz Duda <[email protected]>
1 parent 0819495 commit 9e6386c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/common/cmake/chip_gn.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ macro(matter_build target)
115115
BUILD_COMMAND ${CMAKE_COMMAND} -E echo "Starting Matter library build in ${CMAKE_CURRENT_BINARY_DIR}"
116116
COMMAND ${Python3_EXECUTABLE} ${CHIP_ROOT}/config/common/cmake/make_gn_args.py @args.tmp > args.gn.tmp
117117
# Replace the config only if it has changed to avoid triggering unnecessary rebuilds
118-
COMMAND bash -c "(! diff -q args.gn.tmp args.gn && mv args.gn.tmp args.gn) || true"
118+
COMMAND ${CMAKE_COMMAND} -E compare_files args.gn.tmp args.gn || ${CMAKE_COMMAND} -E rename args.gn.tmp args.gn
119119
# Regenerate the ninja build system
120120
COMMAND ${GN_EXECUTABLE}
121121
--root=${CHIP_ROOT}

0 commit comments

Comments
 (0)