Skip to content

Pass critical CFLAGS/CXXFLAGS to more build steps#237

Open
kwsantiago wants to merge 6 commits intobitcoinknots:29.x-knotsfrom
privkeyio:159-build-checks
Open

Pass critical CFLAGS/CXXFLAGS to more build steps#237
kwsantiago wants to merge 6 commits intobitcoinknots:29.x-knotsfrom
privkeyio:159-build-checks

Conversation

@kwsantiago
Copy link

Closes #159

@kwsantiago kwsantiago marked this pull request as draft November 19, 2025 00:38
@kwsantiago kwsantiago force-pushed the 159-build-checks branch 2 times, most recently from 3d6400e to eb8d6f7 Compare January 8, 2026 20:24
@kwsantiago kwsantiago marked this pull request as ready for review January 8, 2026 20:25
Copy link
Collaborator

@luke-jr luke-jr left a comment

Choose a reason for hiding this comment

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

What do you think about taking the hardening logic out of /CMakeLists.txt and putting it into a CMake module that we can just use here too? (Maybe make that a separate PR in case it doesn't work out)

@kwsantiago
Copy link
Author

What do you think about taking the hardening logic out of /CMakeLists.txt and putting it into a CMake module that we can just use here too? (Maybe make that a separate PR in case it doesn't work out)

@luke-jr I moved this logic to #254

Remove -fstack-reuse=none from depends (leaks gcc-only flag into
toolchain.cmake, breaking builds that override compiler to clang).
The main CMakeLists.txt already handles this via try_append_cxx_flags.

Add NO_HARDEN=1 to MSan depends builds since FORTIFY_SOURCE is
incompatible with MemorySanitizer.
@kwsantiago kwsantiago requested a review from luke-jr February 17, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pass certain CFLAGS/CXXFLAGS to more build steps

2 participants

Comments