mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-05 20:28:20 +02:00
build: Add check parameter to run_command()
This handles a meson warning
This commit is contained in:
parent
e229030c34
commit
d1a6e92582
1 changed files with 4 additions and 3 deletions
|
|
@ -44,12 +44,13 @@ endif
|
|||
|
||||
foreach libname: preloaded_libs
|
||||
lib = run_command(meson.get_compiler('c'),
|
||||
'-print-file-name=lib@0@.so'.format(libname)
|
||||
'-print-file-name=lib@0@.so'.format(libname),
|
||||
check: true,
|
||||
).stdout().strip()
|
||||
|
||||
# Support linker script files
|
||||
if run_command('grep', '-qI', '^INPUT', files(lib)).returncode() == 0
|
||||
out = run_command('cat', lib).stdout()
|
||||
if run_command('grep', '-qI', '^INPUT', files(lib), check: false).returncode() == 0
|
||||
out = run_command('cat', lib, check: true).stdout()
|
||||
lib = out.split('(')[1].split(')')[0].strip()
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue