|
Boost-Build : |
From: Phillip Seaver (phil_at_[hidden])
Date: 2006-02-02 11:13:18
scaringi_stephen_at_[hidden] wrote:
<snip>
> exe hello : hello.cpp : <define>TESTING ;
>
> And here's the output from bjam:
>
> C:\boost-build\example\hello>bjam -n
> ...found 9 targets...
> ...updating 2 targets...
> msvc.compile.c++ bin\msvc\debug\hello.obj
>
> call "C:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\bin\vcvars32.bat" >nul
> cl /Zm800 -nologo -TP /Z7 /Od /Ob0 /W4 /GR /MDd /Zc:forScope /Zc:wchar_t
> /Wp64 /GB /wd4675 /EHs @"bin\msvc\debug\hello.obj.rsp" -c
> -Fo"bin\msvc\debug\hello.obj"
>
> Shouldn't there be a /D "TESTING" argument passed to cl?
>
> If I replace the <define>TESTING with <cxxflags>"/D \"TESTING\"", then it
> shows up.
>
> Thanks for any help you can provide,
> -Stephen
msvc builds use "response" files to hold the includes, defines, and
source file. That's the @"bin\msvc\debug\hello.obj.rsp" part of the
command-line above.
If it successfully compiled, it deletes the .rsp file, but if the
compile fails, it leaves the .rsp file there and you would be able to
see the defines and includes passed in.
Phillip
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