~lattis/muon#29: 
error: expected type string, got array "name_suffix: lib_name_suffix,"

/home/user/rizin_copy/librz/util/meson.build:106:16: error: expected type string, got array
106 |   name_suffix: lib_name_suffix,
                     ^
/home/user/rizin_copy/librz/util/meson.build:97:11: error: in function library
 97 | rz_util = library('rz_util', rz_util_sources,
                ^
/home/user/rizin_copy/librz/meson.build:3:1: error: in function subdir
  3 | subdir('util')
      ^
/home/akochkov/rizin/rizin_copy/meson.build:646:1: error: in function subdir
646 | subdir('librz')
      ^

on the following piece of code:

rz_util = library('rz_util', rz_util_sources,
  include_directories: platform_inc,
  c_args: library_cflags,
  dependencies: rz_util_deps,
  install: true,
  implicit_include_directories: false,
  install_rpath: rpath_lib,
  link_args: library_linkflags,
  soversion: rizin_libversion,
  name_suffix: lib_name_suffix,
  name_prefix: lib_name_prefix,
)

See https://github.com/rizinorg/rizin/blob/dev/librz/util/meson.build

Status
RESOLVED FIXED
Submitter
~xvilka
Assigned to
No-one
Submitted
4 months ago
Updated
4 months ago
Labels
No labels applied.

~lattis REPORTED FIXED 4 months ago

Done!

~eschwartz 4 months ago

This seems quite odd, since the kwarg only reasonably expects a string and not an array of strings.

~lattis 4 months ago

~eschwartz: it accepts a string or [] which is equivalent to not specifying the keyword at all. Another case for meson to have a null type :)

~eschwartz 4 months ago

Gah.

...

Given you can do

maybe_libsuffix_kwargs = {}
library('name', sources, kwargs: maybe_libsuffix_kwargs)

it feels sad that we have a magic null list thing.

Register here or Log in to comment, or comment via email.