From 08b6a112c0165897e9185d9bacb6c2aeb33c7a00 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 15 Sep 2019 16:13:28 -0600 Subject: [PATCH] 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 --- Jamfile | 5 ----- examples/Jamfile | 3 +++ test/Jamfile | 1 + 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Jamfile b/Jamfile index b8129ce2e..d05225776 100644 --- a/Jamfile +++ b/Jamfile @@ -798,9 +798,6 @@ lib torrent on:src/hasher512.cpp on:src/sha512.cpp - debug:on - debug:on - @building @warnings $(CXXFLAGS) @@ -816,8 +813,6 @@ lib torrent : # usage requirements $(usage-requirements) shared:TORRENT_LINKING_SHARED - debug:on - debug:on ; diff --git a/examples/Jamfile b/examples/Jamfile index 670499fc6..e969fee89 100644 --- a/examples/Jamfile +++ b/examples/Jamfile @@ -9,6 +9,8 @@ if $(BOOST_ROOT) use-project /boost : $(BOOST_ROOT) ; } +variant debug-mode : debug : on on on ; + project client_test : requirements multi /torrent//torrent @@ -21,6 +23,7 @@ project client_test msvc:/wd4373 : default-build static + debug-mode ; exe client_test : client_test.cpp print.cpp torrent_view.cpp session_view.cpp ; diff --git a/test/Jamfile b/test/Jamfile index e4d416e7d..263dcf867 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -49,6 +49,7 @@ local default-build = full on on + on ; project