Subject: [Boost-build] mpi.jam: patch suggestion for building boost.mpi under windows
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-11-22 13:59:38
I have managed to build boost.mpi with openmpi on windows.
the mpi.jam available in the has some function that is unix shell specific.
When I tried to build with bjam, it failed because of this. This is the
# Determine if it is safe to execute the given shell command by trying
# to execute it and determining whether the exit code is zero or
# not. Returns true for an exit code of zero, false otherwise.
local rule safe-shell-command ( cmdline )
local result = [ SHELL "$(cmdline) > /dev/null 2>/dev/null; if [ "$?" -eq
"0" ]; then echo SSCOK; fi" ] ;
return [ MATCH ".*(SSCOK).*" : $(result) ] ;
Under windows, I guess the /dev/null should be replaced by > nul, and the
if [ "$?" -eq "0" ]; then echo SSCOK; fi
should be replaced by the cmd.exe equivalent :-)
I didn't actually do this as I just removed the if test that called this
function completely:-) and it built boost.mpi correctly.
However, I am available to test the windows fix if there is an interest,
Boost-Build 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