diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-07-18 15:03:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-18 15:03:54 +0300 |
commit | 0be74c78352bbe996599aed39468dadec45d1109 (patch) | |
tree | de1ac24c6dec3f496cb86b605d8d1af044cb33c1 /mesonbuild/minstall.py | |
parent | 6614c7352645770d68bc1adb782fef4da323815a (diff) | |
parent | b5146c02effd53a8b71b2d10f95ecd2358f8241d (diff) | |
download | meson-0be74c78352bbe996599aed39468dadec45d1109.zip meson-0be74c78352bbe996599aed39468dadec45d1109.tar.gz meson-0be74c78352bbe996599aed39468dadec45d1109.tar.bz2 |
Merge pull request #8972 from bonzini/C-symlink
resolve symlinks passed to -C
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) |