2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 12:22:17 +00:00

* common.jam (get-invocation-command): When

we cannot find a specified tool, return
   tool's name so that the command line looks sane,
   even if it does not work.
   (handle-options): Report which command will
   be used, in debug mode.


[SVN r40008]
This commit is contained in:
Vladimir Prus
2007-10-14 09:55:41 +00:00
parent cb7f29fcd3
commit 726fc91c8f

View File

@@ -250,6 +250,7 @@ rule get-invocation-command (
ECHO "warning: toolset $(toolset) initialization: can't find tool $(tool)" ;
ECHO "warning: initialized from" [ errors.nearest-user-location ] ;
}
command = $(tool) ;
}
}
else
@@ -268,10 +269,7 @@ rule get-invocation-command (
command = $(user-provided-command) ;
}
}
if ! $(command)
{
command = $(user-provided-command) ;
}
return $(command) ;
}
@@ -378,6 +376,11 @@ rule check-tool ( xcommand + )
# - OPTIONs for link to the value of <linkflags> in options
rule handle-options ( toolset : condition * : command * : options * )
{
if $(.debug-configuration)
{
ECHO "notice: will use '$(command)' for $(toolset), condition $(condition:E=(empty))" ;
}
# The last parameter ('true') says it's OK to set flags for another
# module,
toolset.flags $(toolset) CONFIG_COMMAND $(condition) : $(command) : unchecked ;