From 2fea4c7c01a35264f1151d90ccc5c0c25c41f0d1 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Fri, 19 Oct 2018 17:45:12 +0700 Subject: [PATCH] meson: Use assert() to validate the prefix Signed-off-by: Arnaud Rebillout --- meson.build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meson.build b/meson.build index a80bf816c..58ff71c8a 100644 --- a/meson.build +++ b/meson.build @@ -31,9 +31,7 @@ libversion = '@0@.@1@.0'.format(soversion, pa_version_minor.to_int() * 100 + pa_ # Paths prefix = get_option('prefix') -if not prefix.startswith('/') - error('Prefix is not absolute: "@0@"'.format(prefix)) -endif +assert(prefix.startswith('/'), 'Prefix is not absolute: "@0@"'.format(prefix)) bindir = join_paths(prefix, get_option('bindir')) libdir = join_paths(prefix, get_option('libdir'))