Skip to content
Commit 100c259e authored by Filip Jagodzinski's avatar Filip Jagodzinski
Browse files

cmake: Fix PATCH_COMMAND for pigweed



The default version of `patch` available on macOS (2.0-12u11-Apple) does
not fully support `git --diff` format, and fails to create new files
defined in a patch file.

We already depend on `git` to fetch pigweed's sources, so replace
`patch` with `git apply` to improve portability and fix the issue
mentioned above.

Additionally, make the whole PATCH_COMMAND more robust and safe for
re-running by bringing the git tree to a known (clean) state.

Signed-off-by: Filip Jagodzinski's avatarFilip Jagodzinski <filip.jagodzinski@arm.com>
parent d421ef83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment