Browse Source

meson: fix warning in run_command

Fixes this warning:
```
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300
```

Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
Stephan Lachnit 2 years ago
parent
commit
b58b32072a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      data/meson.build

+ 2 - 1
data/meson.build

@@ -8,7 +8,8 @@ data_conf.set('GAMEMODE_VERSION', meson.project_version())
 # Pull in the example config
 config_example = run_command(
     'cat',
-    join_paths(meson.source_root(), 'example', 'gamemode.ini')
+    join_paths(meson.source_root(), 'example', 'gamemode.ini'),
+    check: true,
 ).stdout().strip()
 data_conf.set('GAMEMODE_EXAMPLE_CONFIG', config_example)