msubprojects: Fix --sourcedir argument not working

This is a regression caused by
https://github.com/mesonbuild/meson/pull/11951.

Fixes: #12466
pull/12461/head
Xavier Claessens 1 year ago committed by Xavier Claessens
parent 61a760a39c
commit 4c5e976a75
  1. 2
      mesonbuild/msubprojects.py

@ -746,7 +746,7 @@ def run(options: 'Arguments') -> int:
pre_func(options)
logger = Logger(len(wraps))
for wrap in wraps:
dirname = Path(subproject_dir, wrap.directory).as_posix()
dirname = Path(source_dir, subproject_dir, wrap.directory).as_posix()
runner = Runner(logger, r, wrap, dirname, options)
task = loop.run_in_executor(executor, runner.run)
tasks.append(task)

Loading…
Cancel
Save