[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-build
Subject: [Boost-build] mpi.jam: patch suggestion for building boost.mpi
From: "Hicham Mouline" <hicham () mouline ! org>
Date: 2010-11-22 18:59:38
Message-ID: 005601cb8a77$69b6f390$3d24dab0$ () org
[Download RAW message or body]
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
function:
# 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,
regards,
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic