From 94b1bf456e9062a2f966453b1daea3fd6a9e03cc Mon Sep 17 00:00:00 2001 From: Matthias Dressel Date: Wed, 9 Feb 2022 15:35:09 +0100 Subject: meson: Use native check of return value --- meson.build | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'meson.build') 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' -- cgit v1.2.3