From a41c9f62e42d3bd00a9242e41c71983333f8511b Mon Sep 17 00:00:00 2001 From: arvidn Date: Fri, 14 Jul 2017 22:54:14 -0700 Subject: [PATCH] asserts and invariant checks are on by default when building debug, but not release --- Jamfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Jamfile b/Jamfile index 3b556aa4c..fff96b356 100644 --- a/Jamfile +++ b/Jamfile @@ -368,6 +368,17 @@ rule building ( properties * ) return $(result) ; } +rule default-build ( properties * ) +{ + local result ; + if debug in $(properties) + { + result += debug:on + debug:on ; + } + return $(result) ; +} + rule tag ( name : type ? : property-set ) { name = [ virtual-target.add-prefix-and-suffix $(name) : $(type) : $(property-set) ] ; @@ -753,8 +764,6 @@ lib torrent on:ed25519/src/$(ED25519_SOURCES).cpp on:src/hasher512.cpp on:src/lazy_bdecode.cpp - debug:on - debug:on @building @warnings @@ -767,6 +776,7 @@ lib torrent : # default build multi 512 + @default-build : # usage requirements $(usage-requirements)