On Tuesday, 7 January 2025 at 17:55:50 UTC, sfp wrote:
File `meson.build`:
```
project('unittest', 'd')
mainlib = library('mainlib', ['blah.d'])
executable('maintest', ['main.d'], link_with: [mainlib],
d_unittest: true)
```
Your first version is indeed wrong because the library is not
comp
On Tuesday, 7 January 2025 at 11:46:46 UTC, axricard wrote:
[...[
What do you mean by 'not particularly useful' ? Unittests are
not being runned ?
[...]
I dug into this a bit more and figured out what the problem was.
File `blah.d`:
```
void f() {
import std.stdio;
writeln("hi");
}
un
On Sunday, 5 January 2025 at 23:52:24 UTC, sfp wrote:
Anyone have a good way of yanking out all `unittest { ... }`
blocks from a library compiled using Meson? It would be nice to
approximate what dub does.
Meson has mentions this trick in its help docs
(https://mesonbuild.com/D.html#using-emb
Anyone have a good way of yanking out all `unittest { ... }`
blocks from a library compiled using Meson? It would be nice to
approximate what dub does.
Meson has mentions this trick in its help docs
(https://mesonbuild.com/D.html#using-embedded-unittests) but it
isn't particularly useful. I h