mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 00:32:11 +00:00
Remove defaul template depth of 128.
This was old code and hence was a default that doesn't make sense any longer. The compiler defaults for some time have been considerably above 128. Which has actually meant that we've restricted this instead of incrementing it.
This commit is contained in:
@@ -573,21 +573,6 @@ rule compile.c++ ( targets * : sources * : properties * )
|
||||
LANG on $(<) = "-x c++" ;
|
||||
}
|
||||
DEPENDS $(<) : [ on $(<) return $(PCH_FILE) ] ;
|
||||
|
||||
# Here we want to raise the template-depth parameter value to something
|
||||
# higher than the default value of 17. Note that we could do this using the
|
||||
# feature.set-default rule but we do not want to set the default value for
|
||||
# all toolsets as well.
|
||||
#
|
||||
# TODO: This 'modified default' has been inherited from some 'older Boost
|
||||
# Build implementation' and has most likely been added to make some Boost
|
||||
# library parts compile correctly. We should see what exactly prompted this
|
||||
# and whether we can get around the problem more locally.
|
||||
local template-depth = [ on $(<) return $(TEMPLATE_DEPTH) ] ;
|
||||
if ! $(template-depth)
|
||||
{
|
||||
TEMPLATE_DEPTH on $(<) = 128 ;
|
||||
}
|
||||
}
|
||||
|
||||
rule compile.c ( targets * : sources * : properties * )
|
||||
|
||||
Reference in New Issue
Block a user