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/minstall.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/minstall.py')
-rw-r--r-- | mesonbuild/minstall.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index b631d4a..e753d94 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -28,7 +28,7 @@ from . import environment from .backend.backends import InstallData from .coredata import major_versions_differ, MesonVersionMismatchException from .coredata import version as coredata_version -from .mesonlib import is_windows, Popen_safe +from .mesonlib import Popen_safe, RealPathAction, is_windows from .scripts import depfixer, destdir_join from .scripts.meson_exe import run_exe try: @@ -65,7 +65,7 @@ build definitions so that it will not break when the change happens.''' selinux_updates: T.List[str] = [] 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('--profile-self', action='store_true', dest='profile', help=argparse.SUPPRESS) |