aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/minit.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-07-18 15:03:54 +0300
committerGitHub <noreply@github.com>2021-07-18 15:03:54 +0300
commit0be74c78352bbe996599aed39468dadec45d1109 (patch)
treede1ac24c6dec3f496cb86b605d8d1af044cb33c1 /mesonbuild/minit.py
parent6614c7352645770d68bc1adb782fef4da323815a (diff)
parentb5146c02effd53a8b71b2d10f95ecd2358f8241d (diff)
downloadmeson-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/minit.py')
-rw-r--r--mesonbuild/minit.py3
1 files changed, 2 insertions, 1 deletions
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")