开发者

Sensitising intermittent parallel build issue (cmake)

I am trying to debug an intermittent parallel build issue in my cmake bui开发者_C百科ld system around some generated files. It is however difficult to reliably test or reproduce the issue.

Does anyone know any way to exacerbate or sensitise such issues? Or other strategies for debugging them?


It is likely a missing add_dependencies to force one target to build completely before another begins, or an add_custom_command output that is used in more than one library.

If both libraries start building at the same time, and they both trigger running the custom command at the same time, then you'll get two competing custom commands running, and they may overwrite each other's results, or intermingle results.

Is your code public? Can you post it for others to inspect?

One good strategy is simply exposing it to other developers for "more eyes"...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜