2
0
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:
Vladimir Prus
2006-02-09 13:53:20 +00:00
parent 54c3b961a8
commit 70155d8def
2 changed files with 14 additions and 15 deletions

View File

@@ -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 ;
}

View File

@@ -87,5 +87,12 @@ rule process ( )
}
}
}
if $(dont-build)
{
# Exit without printing "don't know how to build..." and "found 1 target"
# messages.
EXIT ;
}
}