Boost logo

Boost-Build :

From: Hung Dang (hungptit_at_[hidden])
Date: 2022-06-03 16:31:35


Hi,

Our internal build system sets the _ITERATOR_DEBUG_LEVEL value to 1 for the
Debug builds. How could I specify the debug level when using
--build-type=complete?

Below is a Powershell function that I use to build Boost libraries on
Windows platforms.

function build_boost_libraries {
    $number_of_cores = (Get-CimInstance
Win32_ComputerSystem).NumberOfLogicalProcessors
    $debug_level = "1"
    $prefix_dir = "$root_dir\src\vc140-x64\"
    ./bootstrap.bat --prefix="$prefix_dir"
--with-libraries=chrono,thread,regex,filesystem,date_time,json,program_options,json,container,regex
| Out-Null
    ./b2 --prefix="$prefix_dir" --build-dir="$build_dir"
-j"$number_of_cores" --build-type=complete link=static link=shared
threading=single threading=multi --layout=tagged --disable-icu
--with-chrono --with-thread --with-date_time --with-filesystem
--with-program_options --with-json --with-iostreams --with-atomic
--with-container --with-regex cxxstd=14
define=_ITERATOR_DEBUG_LEVEL="$debug_level" install | Out-Null
}

Thanks,
Hung



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk