fix the asserts=on and invariant-checks=on default build. Right now you can't change them in debug builds. Just make those defaults when building tests and examples. Also enable debug-iterators by default in tests and examples
This commit is contained in:
parent
b9a3ba1b37
commit
08b6a112c0
5
Jamfile
5
Jamfile
|
@ -798,9 +798,6 @@ lib torrent
|
||||||
<dht>on:<source>src/hasher512.cpp
|
<dht>on:<source>src/hasher512.cpp
|
||||||
<dht>on:<source>src/sha512.cpp
|
<dht>on:<source>src/sha512.cpp
|
||||||
|
|
||||||
<variant>debug:<invariant-checks>on
|
|
||||||
<variant>debug:<asserts>on
|
|
||||||
|
|
||||||
<conditional>@building
|
<conditional>@building
|
||||||
<conditional>@warnings
|
<conditional>@warnings
|
||||||
<cxxflags>$(CXXFLAGS)
|
<cxxflags>$(CXXFLAGS)
|
||||||
|
@ -816,8 +813,6 @@ lib torrent
|
||||||
: # usage requirements
|
: # usage requirements
|
||||||
$(usage-requirements)
|
$(usage-requirements)
|
||||||
<link>shared:<define>TORRENT_LINKING_SHARED
|
<link>shared:<define>TORRENT_LINKING_SHARED
|
||||||
<variant>debug:<invariant-checks>on
|
|
||||||
<variant>debug:<asserts>on
|
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,8 @@ if $(BOOST_ROOT)
|
||||||
use-project /boost : $(BOOST_ROOT) ;
|
use-project /boost : $(BOOST_ROOT) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variant debug-mode : debug : <asserts>on <debug-iterators>on <invariant-checks>on ;
|
||||||
|
|
||||||
project client_test
|
project client_test
|
||||||
: requirements
|
: requirements
|
||||||
<threading>multi <library>/torrent//torrent
|
<threading>multi <library>/torrent//torrent
|
||||||
|
@ -21,6 +23,7 @@ project client_test
|
||||||
<toolset>msvc:<cflags>/wd4373
|
<toolset>msvc:<cflags>/wd4373
|
||||||
: default-build
|
: default-build
|
||||||
<link>static
|
<link>static
|
||||||
|
<variant>debug-mode
|
||||||
;
|
;
|
||||||
|
|
||||||
exe client_test : client_test.cpp print.cpp torrent_view.cpp session_view.cpp ;
|
exe client_test : client_test.cpp print.cpp torrent_view.cpp session_view.cpp ;
|
||||||
|
|
|
@ -49,6 +49,7 @@ local default-build =
|
||||||
<invariant-checks>full
|
<invariant-checks>full
|
||||||
<picker-debugging>on
|
<picker-debugging>on
|
||||||
<logging>on
|
<logging>on
|
||||||
|
<debug-iterators>on
|
||||||
;
|
;
|
||||||
|
|
||||||
project
|
project
|
||||||
|
|
Loading…
Reference in New Issue