From 0aa487b366dcc78b7818092b360ba1381d49bb07 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Mon, 5 Dec 2011 08:56:44 +0000 Subject: [PATCH] Fix failed to write output file ... lm.log --- moses/src/LM/Jamfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moses/src/LM/Jamfile b/moses/src/LM/Jamfile index 807187dbb..2f3cde8ef 100644 --- a/moses/src/LM/Jamfile +++ b/moses/src/LM/Jamfile @@ -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) {