diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-12-21 21:22:45 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-02-12 00:20:53 +0200 |
commit | ce85daea730942d294951bd41424fac4bc433d92 (patch) | |
tree | c775b4b816cbae7d690f216e8dd36d1ec6c78e05 /docs/markdown/snippets/unitysize.md | |
parent | 20e754354ca3947704ec7c4128e5a69c32a1351f (diff) | |
download | meson-unityblock.tar.gz |
Add unity block size option.unityblock
Diffstat (limited to 'docs/markdown/snippets/unitysize.md')
-rw-r--r-- | docs/markdown/snippets/unitysize.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/snippets/unitysize.md b/docs/markdown/snippets/unitysize.md new file mode 100644 index 000000000..4919ce044 --- /dev/null +++ b/docs/markdown/snippets/unitysize.md @@ -0,0 +1,12 @@ +## Unity file block size is configurable + +Traditionally the unity files that Meson autogenerates contain all +source files that belong to a single target. This is the most +efficient setting for full builds but makes incremental builds slow. +This release adds a new option `unity_size` which specifies how many +source files should be put in each unity file. + +The default value for block size is 4. This means that if you have a +target that has eight source files, Meson will generate two unity +files each of which includes four source files. The old behaviour can +be replicated by setting `unity_size` to a large value, such as 10000. |