Skip to content

Commit

Permalink
added check on run_command
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed May 19, 2022
1 parent 47ee9f1 commit 5ef437d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project('jsdec', 'c', meson_version: '>=0.51.0')
project('jsdec', 'c', meson_version: '>=0.55.0')

pyth = import('python').find_installation()
cc = meson.get_compiler('c')
Expand Down Expand Up @@ -36,7 +36,7 @@ jsc_folder = get_option('jsc_folder')
if jsc_folder != ''
c_args += '-DUSE_JSC'
generator_jsc = files('make_jsc.py')
rc = run_command(pyth, generator_jsc, jsc_folder)
rc = run_command(pyth, generator_jsc, jsc_folder, check: true)
if rc.returncode() != 0
error('failed to generate jsc files.')
endif
Expand Down

0 comments on commit 5ef437d

Please sign in to comment.