mirror of
https://github.com/boostorg/boost.git
synced 2025-04-06 22:14:59 +00:00
Made Boost library build script's '--with-...' & '--without-...' parameter checking more strict so e.g. '--run--with--system' is not interpreted as one of those options.
[SVN r78935]
This commit is contained in:
parent
e0a9e8ec23
commit
df9455da60
1 changed files with 4 additions and 4 deletions
|
@ -508,16 +508,16 @@ build-system.set-post-build-hook $(__name__).post-build ;
|
|||
rule libraries-to-install ( existing-libs * )
|
||||
{
|
||||
local argv = [ modules.peek : ARGV ] ;
|
||||
local with-parameter = [ MATCH --with-(.*) : $(argv) ] ;
|
||||
local without-parameter = [ MATCH --without-(.*) : $(argv) ] ;
|
||||
local with-parameter = [ MATCH ^--with-(.*) : $(argv) ] ;
|
||||
local without-parameter = [ MATCH ^--without-(.*) : $(argv) ] ;
|
||||
|
||||
if ! $(with-parameter) && ! $(without-parameter)
|
||||
{
|
||||
# Nothing is specified on command line. See if maybe project-config.jam
|
||||
# has some choices.
|
||||
local libs = [ modules.peek project-config : libraries ] ;
|
||||
with-parameter = [ MATCH --with-(.*) : $(libs) ] ;
|
||||
without-parameter = [ MATCH --without-(.*) : $(libs) ] ;
|
||||
with-parameter = [ MATCH ^--with-(.*) : $(libs) ] ;
|
||||
without-parameter = [ MATCH ^--without-(.*) : $(libs) ] ;
|
||||
}
|
||||
|
||||
# Do some checks.
|
||||
|
|
Loading…
Add table
Reference in a new issue