From b44a51d0fdd48089d2cc3864d34a3ccad77ec52d Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 7 Jul 2021 17:37:56 +0200 Subject: resolve symlinks passed to -C "meson setup" is resolving symlinks for the build directory in validate_core_dirs. For consistency with it, do the same when the build directory is passed via -C to devenv, dist, init, install and test. This ensures for example that the path to test dependencies is computed correctly in "meson test". Fixes: #8765 --- mesonbuild/minit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/minit.py') diff --git a/mesonbuild/minit.py b/mesonbuild/minit.py index efc5d2c..124e6c6 100644 --- a/mesonbuild/minit.py +++ b/mesonbuild/minit.py @@ -139,7 +139,8 @@ def add_arguments(parser: 'argparse.ArgumentParser') -> None: Meson project. ''' parser.add_argument("srcfiles", metavar="sourcefile", nargs="*", help="source files. default: all recognized files in current directory") - parser.add_argument('-C', default='.', dest='wd', help='directory to cd into before running') + parser.add_argument('-C', dest='wd', action=mesonlib.RealPathAction, + help='directory to cd into before running') parser.add_argument("-n", "--name", help="project name. default: name of current directory") parser.add_argument("-e", "--executable", help="executable name. default: project name") parser.add_argument("-d", "--deps", help="dependencies, comma-separated") -- cgit v1.1