forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #82: cmake: Rework handling compiler flags
dbd2f7a depends: Amend handling flags environment variables (Hennadii Stepanov) 56ef358 [FIXUP] cmake: Fix flags handling (Hennadii Stepanov) Pull request description: 1. Use standard CMake's way to pass flags from depends to the main build system using `CMAKE_<LANGUAGE>_FLAGS_INIT` variables instead of custom `DEPENDS_<LANGUAGE>_COMPILER_FLAGS` ones. This guaranties using those flags during various checks at the configuration stage. 2. Setting flags is decoupled from setting compilers in the toolchain file. 3. Per-configuration flags are cached properly. 4. No longer needed to set `-DCMAKE_BUILD_TYPE=None` when building with depends. Fixes cross compilation for macOS. Allows the user to use `{C,CXX}FLAGS` environment variables for depends and the main build system without drawbacks/workarounds. The flags presentation in the summary (#82 (comment)) will be reworked in a separated PR. Top commit has no ACKs. Tree-SHA512: 9bdc670a62a9b10866b8bbbfbc19abf3ae1d3b8f4062f85a9437f63a878dd9bebec46670b91f8310c5c10673bb35940160172d0ec588d2f3c81788ae966c338b
- Loading branch information
Showing
6 changed files
with
167 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters