Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Regular rebasing of the cmake-staging branch #85

Closed
wants to merge 54 commits into from

Conversation

hebasto
Copy link
Owner

@hebasto hebasto commented Jan 26, 2024

This is the cmake-staging branch rebased on the recent bitcoin/master one with the squashed "!fixup" commits.

Steps to reproduce:

  1. Apply the git rebase -i --autosquash fa2bcf627b8866031cd62d0a2d3ced57b17442a8 command (there is a conflict, which can be resolved by removing the .github/workflows/ci.yml file).
  2. Reorder the recent commit to bury Qt stuff deeper and pop up CI one.

A note regarding bitcoin#28875. No extra steps for backporting that PR are needed. As it was pointed earlier, it "just works":

$ cmake -B build -DFUZZ=ON -DSANITIZERS=fuzzer -DCMAKE_C_COMPILER=clang-13 -DCMAKE_CXX_COMPILER=clang++-13 -DWITH_GUI=OFF
$ cmake --build build -j $(nproc)
$ objdump --disassemble=secp256k1_xonly_pubkey_serialize build/src/test/fuzz/fuzz | grep __sanitizer_cov
  da33a1:	e8 1a b9 b7 ff       	call   91ecc0 <__sanitizer_cov_trace_const_cmp8>
  da351e:	e8 ad b6 b7 ff       	call   91ebd0 <__sanitizer_cov_trace_pc_indir>
  da3548:	e8 83 b6 b7 ff       	call   91ebd0 <__sanitizer_cov_trace_pc_indir>
  da3576:	e8 55 b6 b7 ff       	call   91ebd0 <__sanitizer_cov_trace_pc_indir>

Known Bugs

Unfortunately, due to a silent conflict between #43 and #77, providing -DFUZZ=ON does not disable the bitcoin-qt target. It will be fixed shortly after pushing this branch.

hebasto and others added 30 commits January 26, 2024 20:45
Also add a sanity check for non-encapsulated (directory-wide) build
properties.
Co-authored-by: Cory Fields <cory-nospam-@coryfields.com>
Co-authored-by: Vasil Dimov <vd@FreeBSD.org>
Co-authored-by: Cory Fields <cory-nospam-@coryfields.com>
To configure CMake for cross-compiling, use
`--toolchain depends/${HOST}/share/toolchain.cmake` command-line option.
@hebasto
Copy link
Owner Author

hebasto commented Jan 26, 2024

Copy link

@TheCharlatan TheCharlatan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@hebasto
Copy link
Owner Author

hebasto commented Jan 27, 2024

@TheCharlatan

Thank you for your review!


This branch has been force pushed into the https://github.com/hebasto/bitcoin/tree/cmake-staging.

Closing.

@hebasto hebasto closed this Jan 27, 2024
@hebasto hebasto mentioned this pull request Jan 27, 2024
hebasto added a commit that referenced this pull request Jan 29, 2024
63c1bb5 fixup! cmake: Add fuzzing options (Hennadii Stepanov)
d31abc2 fixup! ci: Test CMake edge cases (Hennadii Stepanov)

Pull request description:

  From #85 (comment):
  > **Known Bugs**
  >
  > Unfortunately, due to a silent conflict between #43 and #77, providing `-DFUZZ=ON` does not disable the `bitcoin-qt` target. It will be fixed shortly after pushing this branch.

  Fixed.

ACKs for top commit:
  vasild:
    ACK 63c1bb5

Tree-SHA512: b3cc2889d0239913de64c170880c97b37966a890d8c4e05f9090485a016b7f9cdf4880d770a234f323d3191b9adda8ed0343c29dfa49b5bb99b0b54481d4335e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants