How to suppress vcvarsall.bat call?

Hello When compiling Boost 1.38.0 with this command, bjam 3.1.17 insists on calling vcvarsall.bat before executing the actual build commands. bjam -q -sNO_COMPRESSION=1 --build-type=complete --abbreviate-paths --toolset=msvc-8.0 architecture=x86 address-model=32 However my environment already includes all necessary settings to execute cl, link,... So I would like to skip the call to vcvarsall.bat. Is this possible using a bjam command line argument? Regards, Peter.

Hi Peter.
When compiling Boost 1.38.0 with this command, bjam 3.1.17 insists on calling vcvarsall.bat before executing the actual build commands.
bjam -q -sNO_COMPRESSION=1 --build-type=complete --abbreviate-paths --toolset=msvc-8.0 architecture=x86 address-model=32
However my environment already includes all necessary settings to execute cl, link,...
So I would like to skip the call to vcvarsall.bat. Is this possible using a bjam command line argument?
As I recall it is. When you initialize your msvc toolset pass it an empty <setup> property or something like that. Look at the init() rule in the msvc.jam toolset module for more detailed information. Hope this helps. Best regards, Jurko Gospodnetić

Jurko Gospodnetić wrote:
Hi Peter.
When compiling Boost 1.38.0 with this command, bjam 3.1.17 insists on calling vcvarsall.bat before executing the actual build commands.
bjam -q -sNO_COMPRESSION=1 --build-type=complete --abbreviate-paths --toolset=msvc-8.0 architecture=x86 address-model=32
However my environment already includes all necessary settings to execute cl, link,...
So I would like to skip the call to vcvarsall.bat. Is this possible using a bjam command line argument?
As I recall it is. When you initialize your msvc toolset pass it an empty <setup> property or something like that. Look at the init() rule in the msvc.jam toolset module for more detailed information.
Property <setup> is mentioned in msvc.jam but neither "--setup=" nor "setup=" works. Can you give me any advice on the command line syntax? Regards, Peter.

Peter Klotz wrote:
Property <setup> is mentioned in msvc.jam but neither "--setup=" nor "setup=" works.
Can you give me any advice on the command line syntax?
It's not possible to configure that from the command line. You need to set up a "user-config.jam" with a special msvc toolset configuration. See the BB configuration docs http://tinyurl.com/78kcq7 for details on how to do that. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org (msn) - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail

Rene Rivera wrote:
Peter Klotz wrote:
Property <setup> is mentioned in msvc.jam but neither "--setup=" nor "setup=" works.
Can you give me any advice on the command line syntax?
It's not possible to configure that from the command line. You need to set up a "user-config.jam" with a special msvc toolset configuration. See the BB configuration docs http://tinyurl.com/78kcq7 for details on how to do that.
Thanks a lot, this solved my problem. Here are the necessary steps in case anyone ever needs something similar: Create a file called user-config.jam in directory %USERPROFILE% and an empty bjam.bat file in directory C:\. user-config.jam has to contain this line: using msvc : 8.0 : : <setup>"C:\\bjam.bat" ; Regards, Peter.
participants (3)
-
Jurko Gospodnetić
-
Peter Klotz
-
Rene Rivera