mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 12:42:11 +00:00
Emit clear error when more than one possible Jamfile is found in a directory
[SVN r49851]
This commit is contained in:
@@ -286,7 +286,13 @@ local rule load-jamfile (
|
||||
{
|
||||
jamfile-to-load = [ find-jamfile $(dir) ] ;
|
||||
}
|
||||
|
||||
|
||||
if $(jamfile-to-load[2])
|
||||
{
|
||||
errors.error "Multiple Jamfiles found at '$(dir)'"
|
||||
: "Filenames are: " $(jamfile-to-load:D=) ;
|
||||
}
|
||||
|
||||
# The module of the Jamfile.
|
||||
#
|
||||
local jamfile-module = [ module-name [ path.parent $(jamfile-to-load) ] ] ;
|
||||
|
||||
Reference in New Issue
Block a user