Re: [Boost-bugs] [Boost C++ Libraries] #5602: MPI-autodetection on Windows does not work with openmpi

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5602: MPI-autodetection on Windows does not work with openmpi
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-11 18:45:22


#5602: MPI-autodetection on Windows does not work with openmpi
-----------------------------------+----------------------------------------
  Reporter: finjulhich@… | Owner: doug_gregor
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: Building Boost
   Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords:
-----------------------------------+----------------------------------------

Comment (by anonymous):

 I think I've managed to get it working again.

 Here's an addition to the 'safe-shell-command' rule.


 local rule safe-shell-command ( cmdline )
 {
   if [ os.on-windows ]
   {
     local result = [ SHELL "$(cmdline) >nul 2>nul && if %errorlevel% equ 0
 echo SSCOK" ] ;
     return [ MATCH ".*(SSCOK).*" : $(result) ] ;
   }
   else # unix
   {
     local result = [ SHELL "$(cmdline) > /dev/null 2>/dev/null; if [ "$?"
 -eq "0" ]; then echo SSCOK; fi" ] ;
     return [ MATCH ".*(SSCOK).*" : $(result) ] ;
   }
 }


 this seems to do it,

 It'd be nice to get this reviewed by a a windows cmd.exe/bjam more serious
 user,

 rds,

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5602#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC