Skip to content

Commit

Permalink
meson: explicitly check for run_command failure
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cgzones committed Oct 3, 2024
1 parent 20afd5d commit 0d11f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const char * in_word_set(const char *, @0@);
@1@
'''
gperf_snippet_format = 'echo foo,bar | @0@ -L ANSI-C'
gperf_snippet = run_command('sh', '-c', gperf_snippet_format.format(gperf.path()))
gperf_snippet = run_command('sh', '-c', gperf_snippet_format.format(gperf.path()), check: true)
gperf_test = gperf_test_format.format('size_t', gperf_snippet.stdout())
if cc.compiles(gperf_test)
gperf_len_type = 'size_t'
Expand Down

0 comments on commit 0d11f06

Please sign in to comment.