Page MenuHomePhabricator

[build] correctly set -fstack-reuse=none only for gcc
ClosedPublic

Authored by majcosta on Sep 11 2020, 19:15.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABC5ec7559756fe: [build] correctly set -fstack-reuse=none only for gcc
Summary

currently this will add the -fstack-reuse=none flag to all builds with
all compilers except those who set ENABLE_CLANG_TIDY=ON even though only
gcc knows about it

this only adds -fstack-reuse=none to gcc builds

Test Plan
cmake -GNinja  
ninja -vn | grep fstack-reuse

see correct ninja dry-run with option set for gcc (it is the default compiler on my box)

cmake -GNinja -DCMAKE_CXX_COMPILER=clang++
ninja -vn | grep fstack-reuse

see no lines

Diff Detail

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