HomePhabricator

[CMAKE] Split remove_compiler_flags into C and CXX variants

Description

[CMAKE] Split remove_compiler_flags into C and CXX variants

Summary: Keep a remove_compiler_flags macro that does both.

Test Plan:

mkdir buildcmake && cd buildcmake
cmake -GNinja .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
ninja -v

Check the -DNDEBUG does not appear on the compiler command lines.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: teamcity, schancel

Differential Revision: https://reviews.bitcoinabc.org/D2655

Details

Provenance
FabienAuthored on Mar 6 2019, 11:39
FabienPushed on Mar 7 2019, 15:29
Reviewer
Restricted Project
Differential Revision
D2655: [CMAKE] Split remove_compiler_flags into C and CXX variants
Parents
rABCb4df2add2e38: [CMAKE] Remove the -DNDEBUG flag from the release build configurations
Branches
Unknown
Tags
Unknown