Print the platform probe atomically#1796
Conversation
DMD may print some stuff in between call of `pragma(msg)` and corrupt the json data.
|
Thanks for your pull request and interest in making D better, @SSoulaimane! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. |
|
this code was extremely difficult to read before and after. Now with even more differently formatted string literals inside that string literal it's confusing. Can we maybe change parts of the generated code to |
The proper solution is to use the new |
|
@wilzbach dub has to support older compiler versions, so I don't think this method will be replaced by anything recent. |
Well, the last ten releases have this new interface which is incidentally also what we officially support as the lowest bootstrap compiler, so that's not really a big concern. Anyhow, my point was that there's no point in investing more time into making this old interface look nicer as it's maintainance only. |
|
@WebFreak001 it looks fine to me, the only confusing bit is to figure out the |
DMD may print some stuff in between calls of
pragma(msg)and corrupt the json data.This is blocking DMD PR dlang/dmd#10539, all buildkite tests which depend on dub are failing.
After debugging, I found out It's printing a probe like this:
It fails at parsing the probe as json and aborts everything.