build: Add convenient BITCOIN_TRY_ADD_COMPILE_FLAG macro #21459

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:210317-flag changing 1 files +53 −45
  1. hebasto commented at 3:08 PM on March 17, 2021: member

    This change allows to type a flag, and a *CXXFLAGS variable once only on each macro invocation.

    No behavior change.

  2. build: Add convenient BITCOIN_TRY_ADD_COMPILE_FLAG macro
    This change allows to type a flag, and a *CXXFLAGS variable once only
    on each macro invocation.
    
    No behavior change.
    1fe6aba782
  3. DrahtBot added the label Build system on Mar 17, 2021
  4. DrahtBot commented at 8:48 PM on March 17, 2021: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #21458 (build: Add -Werror=unused... compile flags by hebasto)
    • #21430 (build: Add -Werror=implicit-fallthrough compile flag by hebasto)
    • #20586 (Fix Windows build with --enable-werror by hebasto)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  5. fanquake commented at 12:07 AM on March 18, 2021: member

    NACK. I don't think doing this is worthwhile; what's wrong with being explicit? I also don't like that we'd have a split of 2/3 AX_CHECK_COMPILE_FLAG "wrapped" in this macro, and 1/3 not.

    This is the same reasoning as my comments in #18857. I guess your opinion has changed, given you agreed with me at the time?

  6. hebasto commented at 12:13 AM on March 18, 2021: member

    Closing. It is the same as #18857 (idk how).

  7. hebasto closed this on Mar 18, 2021

  8. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-24 21:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me