mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 15:00:33 +03:00
Attempt to reduce moses-support e-mails
This commit is contained in:
parent
f007a144f5
commit
875a194dae
@ -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) ;
|
||||
}
|
||||
|
||||
|
@ -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 ;
|
||||
|
Loading…
Reference in New Issue
Block a user