mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
Exit if one of processed options wants to exit.
[SVN r32769]
This commit is contained in:
@@ -112,19 +112,11 @@ IMPORT modules : import : : import ;
|
||||
#
|
||||
import modules ;
|
||||
|
||||
if ! $(dont-build)
|
||||
{
|
||||
# Allow users to override the build system file from the
|
||||
# command-line (mostly for testing)
|
||||
local build-system = [ MATCH --build-system=(.*) : $(ARGV) ] ;
|
||||
build-system ?= build-system ;
|
||||
# Allow users to override the build system file from the
|
||||
# command-line (mostly for testing)
|
||||
local build-system = [ MATCH --build-system=(.*) : $(ARGV) ] ;
|
||||
build-system ?= build-system ;
|
||||
|
||||
# Use last element in case of multiple command-line options
|
||||
import $(build-system[-1]) ;
|
||||
|
||||
# Use last element in case of multiple command-line options
|
||||
import $(build-system[-1]) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
# Exit without printing "don't know how to build..." and "found 1 target"
|
||||
# messages.
|
||||
EXIT ;
|
||||
}
|
||||
|
||||
@@ -87,5 +87,12 @@ rule process ( )
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if $(dont-build)
|
||||
{
|
||||
# Exit without printing "don't know how to build..." and "found 1 target"
|
||||
# messages.
|
||||
EXIT ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user