Skip to content

Commit 279cac0

Browse files
authored
Suppress the info messages while installing Boost (#1349)
Suppressed the info messages e.g. file copy info logs, while installing Boost. Default prints too many logs. ./b2 --help-options ... * -dn; Enables output of diagnostic messages. The debug level 'n' and all below it are enabled by this option. * -d+n; Enables output of diagnostic messages. Only the output for debug level 'n' is enabled. Debug Levels: Each debug level shows a different set of information. Usually with higher levels producing more verbose information. The following levels are supported: * 0; Turn off all diagnostic output. Only errors are reported. * 1; Show the actions taken for building targets, as they are executed. * 2; Show quiet actions and display all action text, as they are executed. * 3; Show dependency analysis, and target/source timestamps/paths. * 4; Show arguments of shell invocations. * 5; Show rule invocations and variable expansions. * 6; Show directory/header file/archive scans, and attempts at binding to targets. * 7; Show variable settings. * 8; Show variable fetches, variable expansions, and evaluation of 'if' expressions. * 9; Show variable manipulation, scanner tokens, and memory usage. * 10; Show execution times for rules. * 11; Show parsing progress of Jamfiles. * 12; Show graph for target dependencies. * 13; Show changes in target status (fate).
1 parent 91db8a3 commit 279cac0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/actions/build-test/windows/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ runs:
9898
# - Thread - https://www.boost.org/libs/thread/
9999
# - Chrono - https://www.boost.org/libs/chrono/
100100
# - Atomic - https://www.boost.org/libs/atomic/
101-
.\b2 address-model=${{ inputs.ARCH_ADDRESS_MODEL }} toolset=msvc --with-thread --with-chrono --with-atomic install
101+
# d0 turns off info logging but only prints warnings and errors.
102+
.\b2 -d0 address-model=${{ inputs.ARCH_ADDRESS_MODEL }} toolset=msvc --with-thread --with-chrono --with-atomic install
102103
cd ..
103104
Remove-Item ${{ inputs.BOOST_FOLDER_NAME }} -Recurse -Force
104105

scripts/install-boost.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ pushd "${TARBALL_NAME}"
2020
# - Chrono - https://www.boost.org/libs/chrono/
2121
# - Atomic - https://www.boost.org/libs/atomic/
2222
# Used the c++11 language level intentionally to support old boost versions.
23-
./b2 cxxflags="-std=c++11 -Wno-enum-constexpr-conversion" --with-thread --with-chrono --with-atomic install
23+
# -d0 turns off info logging but only prints warnings and errors.
24+
./b2 -d0 cxxflags="-std=c++11 -Wno-enum-constexpr-conversion" --with-thread --with-chrono --with-atomic install
2425
popd

0 commit comments

Comments
 (0)