Skip to content

Commit 0d11f06

Browse files
committed
meson: explicitly check for run_command failure
meson complains: 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: mesonbuild/meson#9300
1 parent 20afd5d commit 0d11f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const char * in_word_set(const char *, @0@);
110110
@1@
111111
'''
112112
gperf_snippet_format = 'echo foo,bar | @0@ -L ANSI-C'
113-
gperf_snippet = run_command('sh', '-c', gperf_snippet_format.format(gperf.path()))
113+
gperf_snippet = run_command('sh', '-c', gperf_snippet_format.format(gperf.path()), check: true)
114114
gperf_test = gperf_test_format.format('size_t', gperf_snippet.stdout())
115115
if cc.compiles(gperf_test)
116116
gperf_len_type = 'size_t'

0 commit comments

Comments
 (0)