ninjabackend: fix linking dynamic c libraries with rust

The correct name is "dylib" not "shared"
pull/8970/head
Dylan Baker 4 years ago committed by Nirbheek Chauhan
parent f4fc57ae73
commit d031a684a6
  1. 2
      mesonbuild/backend/ninjabackend.py

@ -1610,7 +1610,7 @@ int dummy;
args += ['--extern', '{}={}'.format(d.name, os.path.join(d.subdir, d.filename))]
else:
# Rust uses -l for non rust dependencies, but we still need to add (shared|static)=foo
_type = 'static' if d.typename == 'static library' else 'shared'
_type = 'static' if d.typename == 'static library' else 'dylib'
args += ['-l', f'{_type}={d.name}']
if d.typename == 'static library':
external_deps.extend(d.external_deps)

Loading…
Cancel
Save