Skip to content

Commit 9aca7f5

Browse files
committed
Actually guard against use of check/predef.jam.
1 parent 25a6bb6 commit 9aca7f5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

check/predef.jam

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@
33
# (See accompanying file LICENSE_1_0.txt or copy at
44
# http://www.boost.org/LICENSE_1_0.txt)
55

6+
ECHO "error: This module (predef/check/predef.jam) is OBSOLETE. Use predef/tools/check/predef.jam instead." ;
7+
68
# Hack, to reload check/predef.jam at its new location.
79
import modules ;
10+
local _loading_ = [ modules.peek modules : .loading ] ;
11+
if $(_loading_[-1]) = $(_loading_[-2])
12+
{
13+
ECHO "error: Recursive loading of this module (predef/check/predef.jam) attempted. The predef/tools/check/predef.jam file is missing." ;
14+
EXIT ;
15+
}
816
local _loaded_ ;
917
for local _module_ in [ modules.peek modules : .loaded ]
1018
{

0 commit comments

Comments
 (0)