diff options
author | Christoph Behle <behlec@gmail.com> | 2018-07-05 20:26:58 +0200 |
---|---|---|
committer | Christoph Behle <behlec@gmail.com> | 2018-07-07 21:20:23 +0200 |
commit | 9cf38700d8f507c40c1e46e680e42d5391a24b79 (patch) | |
tree | 9cbc6526a1b6097f4d11044e44bac30803416db6 /docs/markdown/snippets | |
parent | 2d5e1e24a12791aa18631185b30e0ec55ae2bed6 (diff) | |
download | meson-9cf38700d8f507c40c1e46e680e42d5391a24b79.zip meson-9cf38700d8f507c40c1e46e680e42d5391a24b79.tar.gz meson-9cf38700d8f507c40c1e46e680e42d5391a24b79.tar.bz2 |
Add release snippet
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/configure_file_overwrite_warning.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/markdown/snippets/configure_file_overwrite_warning.md b/docs/markdown/snippets/configure_file_overwrite_warning.md new file mode 100644 index 0000000..550407d --- /dev/null +++ b/docs/markdown/snippets/configure_file_overwrite_warning.md @@ -0,0 +1,39 @@ +## Meson warns if two calls to configure_file() write to the same file + +If two calls to [`configure_file()`](#Reference-manual.md#configure_file) +write to the same file Meson will print a `WARNING:` message during +configuration. For example: +```meson +project('configure_file', 'cpp') + +configure_file( + input: 'a.in', + output: 'out', + command: ['./foo.sh'] + ) +configure_file( + input: 'a.in', + output: 'out', + command: ['./foo.sh'] +) + +``` + +This will output: + +``` +The Meson build system +Version: 0.47.0.dev1 +Source dir: /path/to/srctree +Build dir: /path/to/buildtree +Build type: native build +Project name: configure_file +Project version: undefined +Build machine cpu family: x86_64 +Build machine cpu: x86_64 +Configuring out with command +WARNING: Output file out for configure_file overwritten. First time written in line 3 now in line 8 +Configuring out with command +Build targets in project: 0 +Found ninja-1.8.2 at /usr/bin/ninja +``` |