Don't enable unity builds by default

But do suggest enabling them in the readme and enable them on the CI.
Having them enabled by default breaks clangd/ccls, which doesn't sound
like a great idea.

https://github.com/mesonbuild/meson/issues/8146
This commit is contained in:
Robbert van der Helm
2021-01-01 22:52:17 +01:00
parent 7c133e18da
commit 872a6aa304
4 changed files with 7 additions and 12 deletions
+5 -2
View File
@@ -555,10 +555,13 @@ The following dependencies are included in the repository as a Meson wrap:
some [patches](https://github.com/robbert-vdh/yabridge/blob/master/tools/patch-vst3-sdk.sh)
to allow Winelib compilation
The project can then be compiled as follows:
The project can then be compiled with the command below. You can remove or
change the unity size argument if building takes up too much RAM, or you can
disable unity builds completely by getting rid of `--unity=on` at the cost of
slightly longer build times.
```shell
meson setup --buildtype=release --cross-file cross-wine.conf build
meson setup --buildtype=release --cross-file cross-wine.conf --unity=on --unity-size=1000 build
ninja -C build
```