开发者

rule to get bjam's callstack or why am I registering 2 identic generators

开发者 https://www.devze.com 2023-02-18 23:17 出处:网络
Is there a rule that returns the current call in bjam ? I know if you call \"bjam.exe -d+10 ...\" it will print you the callstack but your own ECHO\'s not.

Is there a rule that returns the current call in bjam ?

I know if you call "bjam.exe -d+10 ..." it will print you the callstack but your own ECHO's not.

What I intend to do is print the callstack in generators.register or any other rules from generators.jam to find out from where does this double-register.

Currently I am registering two identic开发者_StackOverflowal generators and I have no way of findout out why. And this eventually leads to this:

Error: ambiguity found when searching for best transformation

...

Generators that succeeded:

  • xxx.link

  • xxx.link

...


It can be done using the built-in BACKTRACE rule of bjam. You can also consider using some convenient wrappers around it found in tools/build/v2/kernel/errors.jam if raw BACKTRACE does not give the call stack in a format best appropriate for your case.

0

精彩评论

暂无评论...
验证码 换一张
取 消