From: g0dil Date: Wed, 4 Aug 2010 14:53:32 +0000 (+0000) Subject: Change CompileCheck builder to write error messages into .checked file (on success) X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=ba509b19749c2b3c0a2ad930ec89e55c102cbb9d;p=senf.git Change CompileCheck builder to write error messages into .checked file (on success) git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1660 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/site_scons/site_tools/Boost.py b/site_scons/site_tools/Boost.py index 8df9c6b..bc6e0e6 100644 --- a/site_scons/site_tools/Boost.py +++ b/site_scons/site_tools/Boost.py @@ -36,7 +36,8 @@ def CompileCheck(target, source, env): passedTests = {} delay_name = None out.seek(0) - for error in out.read().splitlines(): + result = out.read(); + for error in result.splitlines(): elts = error.split(':',2) if len(elts) != 3 : continue filename, line, message = elts @@ -71,7 +72,7 @@ def CompileCheck(target, source, env): if os.path.exists(target[0].abspath): os.unlink(target[0].abspath) return 1 - file(target[0].abspath,"w").close() + file(target[0].abspath,"w").write(result) return 0 CompileCheck = SCons.Script.Action(CompileCheck)