Page MenuHomePhabricator

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

Authored by Fabien on Feb 4 2020, 09:31.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable