Fix failed to write output file ... lm.log

This commit is contained in:
Kenneth Heafield 2011-12-05 08:56:44 +00:00
parent 138db687ed
commit 0aa487b366

View File

@ -67,7 +67,9 @@ for local i in srilm irstlm randlm {
if $(current) != $(previous) {
#Write inconsistent while the build is running
local ignored = @($(LM-LOG):E=inconsistent) ;
if [ path.exists $(LM-LOG) ] {
local ignored = @($(LM-LOG):E=inconsistent) ;
}
#Write $(current) to $(LM-LOG) after the build completes.
rule post-build ( ok ? ) {
if $(ok) {