Boost logo

Boost-Build :

From: Andrej van der Zee (mavdzee_at_[hidden])
Date: 2008-06-27 10:00:52


>
> Could you please test whether:
>
> setup-prefix = "cmd.exe /S /C call
> " ;
> setup-suffix = " \">nul\" \"&&\" "
> ;
>
> works for you, as opposed to:
>
> setup-prefix = "cmd.exe /S /C call
> " ;
> setup-suffix = " \">nul\" && " ;
>
> As I see is these quotes around && are needed or
> otherwise && gets
> interpreted by the bash shell.
>

You are right, when I remove the quotes from msvc.jam,
the bash interprets cl as a new command because the &&
is interpreted by bash (hence bash sees two commands
instead of one) instead of passed to cmd.exe. Here is
the output:

compile-c-c++
bin/msvc-9.0/debug/threading-multi/response_default.obj
/bin/sh: line 1: cl: command not found

    cmd.exe /S /C call "C:\Program Files\Microsoft
Visual Studio 9.0\VC\vcvarsall.bat" x86 ">nul" && cl
/Zm800 -nologo
@"bin\msvc-9.0\debug\threading-multi\response_default.obj.rsp"

...failed compile-c-c++
bin/msvc-9.0/debug/threading-multi/response_default.obj...

Greets,
Andrej

      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html


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