diff options
author | Matthias Dressel <code@deadcode.eu> | 2022-02-09 17:35:09 +0300 |
---|---|---|
committer | Matthias Dressel <code@deadcode.eu> | 2022-02-09 17:35:09 +0300 |
commit | 94b1bf456e9062a2f966453b1daea3fd6a9e03cc (patch) | |
tree | c2161f1d5d061a5cf4a0f0fc740bc508e2c6e212 /meson.build | |
parent | 2131a2cdaf5d14495ff7f26c0f40232cacdfa561 (diff) |
meson: Use native check of return value
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/meson.build b/meson.build index 0e63d3b..7b9efb3 100644 --- a/meson.build +++ b/meson.build @@ -413,11 +413,7 @@ if is_asm_enabled and host_machine.cpu_family().startswith('x86') # check NASM version if nasm.found() - nasm_r = run_command(nasm, '-v') - - if nasm_r.returncode() != 0 - error('failed running nasm to obtain its version') - endif + nasm_r = run_command(nasm, '-v', check: true) out = nasm_r.stdout().strip().split() if out[1].to_lower() == 'version' |