How to specify the iterator debug level for Windows Debug build
Hung Dang via Boost-build <[email protected]> Fri, 3 Jun 2022 12:31:22 -0400
| Newsgroups | gmane.comp.lib.boost.build |
|---|---|
| Message-ID | <CAJkfh3pgNDi6+EVW19QmZJeNHXPmUuk5NFc-+yAjoVvajn-E0g@mail.gmail.com> |
--===============2981676001140236193==
Content-Type: multipart/alternative; boundary="000000000000ca40dc05e08da7a9"
--000000000000ca40dc05e08da7a9
Content-Type: text/plain; charset="UTF-8"
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
--000000000000ca40dc05e08da7a9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi,<div><br></div><div>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=3Dcomplete? <br><br>Below is a Powe=
rshell function that I use to build Boost libraries on Windows platforms.<b=
r><br>function build_boost_libraries {<br>=C2=A0 =C2=A0 $number_of_cores =
=3D (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors<br>=C2=
=A0 =C2=A0 $debug_level =3D "1"<br>=C2=A0 =C2=A0 $prefix_dir =3D =
"$root_dir\src\vc140-x64\"<br>=C2=A0 =C2=A0 ./bootstrap.bat --pre=
fix=3D"$prefix_dir" --with-libraries=3Dchrono,thread,regex,filesy=
stem,date_time,json,program_options,json,container,regex | Out-Null<br>=C2=
=A0 =C2=A0 ./b2 --prefix=3D"$prefix_dir" --build-dir=3D"$bui=
ld_dir" -j"$number_of_cores" --build-type=3Dcomplete link=3D=
static link=3Dshared threading=3Dsingle threading=3Dmulti --layout=3Dtagged=
--disable-icu --with-chrono --with-thread --with-date_time --with-filesyst=
em --with-program_options --with-json --with-iostreams --with-atomic --with=
-container --with-regex cxxstd=3D14 define=3D_ITERATOR_DEBUG_LEVEL=3D"=
$debug_level" install | Out-Null<br>}<br></div><div><br></div><div>Tha=
nks,</div><div>Hung</div></div>
--000000000000ca40dc05e08da7a9--
--===============2981676001140236193==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
--===============2981676001140236193==--