On Wednesday, 16 January 2019 at 23:29:45 UTC, Johan Engelen wrote:
On Wednesday, 16 January 2019 at 22:10:14 UTC, Johan Engelen wrote:
On Wednesday, 16 January 2019 at 17:36:31 UTC, Márcio Martins wrote:
On Tuesday, 15 January 2019 at 22:51:15 UTC, Johan Engelen wrote:
What platform are you on?

Linux x64

OK, so that should work. What is your testcase? Try with `-fxray-instruction-threshold=1` to also instrument small functions.

I'm trying now and am having the same problem. I'm trying to figure out how to fix LDC so that it works.

work in progress!

-Johan

OK, got it :-) LLVM 7 changed things a little, so it's broken with LDC 1.13 [*].

For now, you can use LDC 1.12 (LLVM 6). You also have to add `-L-lstdc++` as compiler flag. So with LDC 1.12, Linux, and this commandline things work for me:
```
ldc2 -fxray-instrument -fxray-instruction-threshold=1 xraytest.d -L-lstdc++ XRAY_OPTIONS="patch_premain=true xray_mode=xray-basic verbosity=1" xraytest
```

Happy testing,
  Johan

[*] XRay was split into several libraries, and we only copy+link with one of them. You can make things work by downloading the libs and linking with them.

Reply via email to