Skip to content

Commit

Permalink
[nrf noup] use CMake command instead of bash in build script
Browse files Browse the repository at this point in the history
This commit fixes building on Windows PowerShell by removing usage of
"bash" command.

Signed-off-by: Lukasz Duda <[email protected]>
  • Loading branch information
LuDuda authored and Damian-Nordic committed May 26, 2023
1 parent 0819495 commit 9e6386c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/common/cmake/chip_gn.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ macro(matter_build target)
BUILD_COMMAND ${CMAKE_COMMAND} -E echo "Starting Matter library build in ${CMAKE_CURRENT_BINARY_DIR}"
COMMAND ${Python3_EXECUTABLE} ${CHIP_ROOT}/config/common/cmake/make_gn_args.py @args.tmp > args.gn.tmp
# Replace the config only if it has changed to avoid triggering unnecessary rebuilds
COMMAND bash -c "(! diff -q args.gn.tmp args.gn && mv args.gn.tmp args.gn) || true"
COMMAND ${CMAKE_COMMAND} -E compare_files args.gn.tmp args.gn || ${CMAKE_COMMAND} -E rename args.gn.tmp args.gn
# Regenerate the ninja build system
COMMAND ${GN_EXECUTABLE}
--root=${CHIP_ROOT}
Expand Down

0 comments on commit 9e6386c

Please sign in to comment.