【发布时间】:2022-10-13 23:46:04
【问题描述】:
文档提到了变量JAMSHELL,它允许更改 b2 用来执行命令的 shell。但是当我将它设置在我的果酱根中时,它似乎没有任何效果。
例子:
JAMSHELL = cmddd /C % ; # cmddd is not a shell on my computer so should break b2 but it does not
【问题讨论】:
标签: shell bjam boost-build b2
文档提到了变量JAMSHELL,它允许更改 b2 用来执行命令的 shell。但是当我将它设置在我的果酱根中时,它似乎没有任何效果。
例子:
JAMSHELL = cmddd /C % ; # cmddd is not a shell on my computer so should break b2 but it does not
【问题讨论】:
标签: shell bjam boost-build b2
您需要将其注入模块msvc:
using msvc : 14.2 ; # you probably already have this line if using MSVC
import modules ;
modules.poke msvc : JAMSHELL : cmddd /C % ;
【讨论】: