diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-10-20 15:51:39 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-12-17 10:27:54 -0800 |
| commit | 2488f3f4b2f192a11d62534a08e792fd36f800c0 (patch) | |
| tree | ec58c37bf3462f6f5824e19250252162d7e1157d /mesonbuild/build.py | |
| parent | cb7431b1200871e7a70499a8e02b82dc0fa32c39 (diff) | |
| download | meson-2488f3f4b2f192a11d62534a08e792fd36f800c0.tar.gz | |
interpreter: Add type checking for BuildTarget(install_dir: )
This just puts the type checking in the frontend, there's still some
serious cleanup in the build and backend that need to happen.
Diffstat (limited to 'mesonbuild/build.py')
| -rw-r--r-- | mesonbuild/build.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 2abe49686..37a437812 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -22,7 +22,7 @@ from . import programs from .mesonlib import ( HoldableObject, SecondLevelHolder, File, MesonException, MachineChoice, PerMachine, OrderedSet, listify, - extract_as_list, typeslistify, classify_unity_sources, + extract_as_list, classify_unity_sources, get_filenames_templates_dict, substitute_values, has_path_sep, is_parent_path, relpath, PerMachineDefaultable, MesonBugException, EnvironmentVariables, pickle_load, lazy_property, @@ -1291,8 +1291,7 @@ class BuildTarget(Target): self.add_deps(deplist) # If an item in this list is False, the output corresponding to # the list index of that item will not be installed - self.install_dir = typeslistify(kwargs.get('install_dir', []), - (str, bool)) + self.install_dir = kwargs.get('install_dir', []) self.install_mode = kwargs.get('install_mode', None) self.install_tag: T.List[T.Optional[str]] = kwargs.get('install_tag') or [None] self.extra_files = kwargs.get('extra_files', []) |
