enforce asserts on invariant_check (#1529)

enforce asserts on invariant_check
This commit is contained in:
Andrei Kurushin 2017-01-14 19:14:10 +03:00 committed by Arvid Norberg
parent feaca772d9
commit 230342df00
1 changed files with 6 additions and 0 deletions

View File

@ -287,6 +287,12 @@ rule building ( properties * )
{ {
local result ; local result ;
if ( <asserts>off in $(properties) &&
! <invariant-checks>off in $(properties) )
{
EXIT 'invariant-check' requires enabled 'asserts' mode. (e.g. specify build params: invariant-check=on asserts=on) ;
}
if <toolset>msvc in $(properties) if <toolset>msvc in $(properties)
{ {
# allow larger .obj files (with more sections) # allow larger .obj files (with more sections)