We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0819495 commit 9e6386cCopy full SHA for 9e6386c
config/common/cmake/chip_gn.cmake
@@ -115,7 +115,7 @@ macro(matter_build target)
115
BUILD_COMMAND ${CMAKE_COMMAND} -E echo "Starting Matter library build in ${CMAKE_CURRENT_BINARY_DIR}"
116
COMMAND ${Python3_EXECUTABLE} ${CHIP_ROOT}/config/common/cmake/make_gn_args.py @args.tmp > args.gn.tmp
117
# 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"
+ COMMAND ${CMAKE_COMMAND} -E compare_files args.gn.tmp args.gn || ${CMAKE_COMMAND} -E rename args.gn.tmp args.gn
119
# Regenerate the ninja build system
120
COMMAND ${GN_EXECUTABLE}
121
--root=${CHIP_ROOT}
0 commit comments