Attempt to reduce moses-support e-mails

This commit is contained in:
Kenneth Heafield 2013-04-17 13:46:01 +01:00
parent f007a144f5
commit 875a194dae
2 changed files with 20 additions and 7 deletions

View File

@ -596,13 +596,6 @@ local rule should-clean-project ( project )
}
}
ECHO "warning: No toolsets are configured." ;
ECHO "warning: Configuring default toolset" \"$(default-toolset)\". ;
ECHO "warning: If the default is wrong, your build may not work correctly." ;
ECHO "warning: Use the \"toolset=xxxxx\" option to override our guess." ;
ECHO "warning: For more configuration options, please consult" ;
ECHO "warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html" ;
toolset.using $(default-toolset) : $(default-toolset-version) ;
}

View File

@ -265,6 +265,26 @@ rule add-post-hook ( names * ) {
post-hooks += $(names) ;
}
rule failure-message ( ok ? ) {
if $(ok) != "ok" {
local args = [ modules.peek : ARGV ] ;
local args = $(args:J=" ") ;
if --debug-configuration in [ modules.peek : ARGV ] {
echo "The build failed with command line: " ;
echo " $(args)" ;
echo "If you need support, attach the full output to your e-mail." ;
} else {
echo "The build failed. If you need support, run:" ;
echo " $(args) --debug-configuration -d2 >build.log" ;
echo "then attach build.log to your e-mail." ;
}
echo "ERROR" ;
} else {
echo "SUCCESS" ;
}
}
add-post-hook failure-message ;
import feature : feature ;
feature options-to-write : : free ;
import toolset : flags ;