[CMAKE] Fix incompatibility between clang-tidy and -fstack-reuse
Summary:
This flag is GCC only, but will be passed to the clang-tidy options
causing a diagnostic error. This diff prevents using the incompatible
flag when clang-tidy is enabled.
Since this is a hard error, it cannot be filtered out.
Test Plan:
With GCC and clang-tidy enabled:
ninja check
Reviewers: #bitcoin_abc, markblundeberg
Reviewed By: #bitcoin_abc, markblundeberg
Differential Revision: https://reviews.bitcoinabc.org/D5148