]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: Use configure_file when version-tag is specified
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 10 Jan 2021 12:18:36 +0000 (13:18 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 15 Jan 2021 18:34:44 +0000 (19:34 +0100)
commit064b8e2c99ceb348c515353cc5c7d7bd05c49fcb
treea636f29412fe165f39ac006c6881202b34886865
parentbf1868c8d7abaadaad4df00aafb9c183c8d6480b
meson: Use configure_file when version-tag is specified

vcs_tag() is slow. When the version-tag meson option is set,
we can use configure_file() directly to speed up incremental
builds.

Before (with version-tag set to v247):

```
‣ Running build script...
[1/418] Generating version.h with a custom command

real    0m0.521s
user    0m0.229s
sys     0m0.067s
```

After (with version-tag set to v247):

```
‣ Running build script...
ninja: no work to do.

real    0m0.094s
user    0m0.048s
sys     0m0.022s
```
meson.build
tools/meson-vcs-tag.sh