Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2008-07-03 20:13:55


Author: troy
Date: 2008-07-03 20:13:54 EDT (Thu, 03 Jul 2008)
New Revision: 47062
URL: http://svn.boost.org/trac/boost/changeset/47062

Log:
tweak for compile_cxx_object on windows
Text files modified:
   branches/CMake/release/tools/build/CMake/classify.py.in | 8 ++++++++
   1 files changed, 8 insertions(+), 0 deletions(-)

Modified: branches/CMake/release/tools/build/CMake/classify.py.in
==============================================================================
--- branches/CMake/release/tools/build/CMake/classify.py.in (original)
+++ branches/CMake/release/tools/build/CMake/classify.py.in 2008-07-03 20:13:54 EDT (Thu, 03 Jul 2008)
@@ -3,6 +3,7 @@
 #
 
 toolset = '@BOOST_TOOLSET@'
+import os
 
 # 'cxx_compile_object'
 # 'run'
@@ -32,4 +33,11 @@
         step['status'] = 'warn'
         return
 
+ # on windoze, warnings are to be found in stdout... but the compiler always
+ # prints the name of the file first. So warn if there is more than one line
+ # in stdout. For now.
+ if os.name == 'nt' and step['op'] == 'cxx_compile_object' and step['stdout'].count('\n') > 1:
+ step['status'] = 'warn'
+ return
+
     step['status'] = 'pass'


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk