How to set JAMSHELL in Boost Build/b2/bjam

29 Views Asked by At

The documentation mentions the variable JAMSHELL which allows changing the shell that b2 uses to execute commands. But when I set it in my jamroot it seems that it has no effect.

I use the MSVC compiler.

Example:

JAMSHELL = cmddd /C % ; # cmddd is not a shell on my computer so should break b2 but it does not
1

There are 1 best solutions below

0
Gabriel Devillers On

You need to inject it into the module msvc:

using msvc : 14.2 ; # you probably already have this line if using MSVC
import modules ;
modules.poke msvc : JAMSHELL : cmddd /C % ;

source