diff --git a/Jamfile b/Jamfile index 7d0898c56..30036ca23 100644 --- a/Jamfile +++ b/Jamfile @@ -287,6 +287,12 @@ rule building ( properties * ) { local result ; + if ( off in $(properties) && + ! off in $(properties) ) + { + EXIT 'invariant-check' requires enabled 'asserts' mode. (e.g. specify build params: invariant-check=on asserts=on) ; + } + if msvc in $(properties) { # allow larger .obj files (with more sections)