HomePhabricator

[CMAKE] Fix incompatibility between clang-tidy and -fstack-reuse

Description

[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

Details

Provenance
FabienAuthored on Feb 4 2020, 09:28
FabienPushed on Feb 4 2020, 12:44
Reviewer
Restricted Project
Differential Revision
D5148: [CMAKE] Fix incompatibility between clang-tidy and -fstack-reuse
Parents
rSTAGINGda6827e916eb: [CMAKE] Enable clang-tidy
Branches
Unknown
Tags
Unknown