diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-07 17:37:56 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-07 18:00:37 +0200 |
commit | b44a51d0fdd48089d2cc3864d34a3ccad77ec52d (patch) | |
tree | d6009b376b277b7c65b362b76beb1d12681b4510 /mesonbuild/mdevenv.py | |
parent | 81d9acab8744d5fbd067cfad0723975b694101f0 (diff) | |
download | meson-b44a51d0fdd48089d2cc3864d34a3ccad77ec52d.zip meson-b44a51d0fdd48089d2cc3864d34a3ccad77ec52d.tar.gz meson-b44a51d0fdd48089d2cc3864d34a3ccad77ec52d.tar.bz2 |
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
Diffstat (limited to 'mesonbuild/mdevenv.py')
-rw-r--r-- | mesonbuild/mdevenv.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mdevenv.py b/mesonbuild/mdevenv.py index 7594db2..48108fe 100644 --- a/mesonbuild/mdevenv.py +++ b/mesonbuild/mdevenv.py @@ -4,12 +4,12 @@ import tempfile from pathlib import Path from . import build -from .mesonlib import MesonException, is_windows +from .mesonlib import MesonException, RealPathAction, is_windows import typing as T def add_arguments(parser: argparse.ArgumentParser) -> None: - parser.add_argument('-C', default='.', dest='wd', + parser.add_argument('-C', dest='wd', action=RealPathAction, help='directory to cd into before running') parser.add_argument('command', nargs=argparse.REMAINDER, help='Command to run in developer environment (default: interactive shell)') |