diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-01-10 15:03:29 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-15 10:21:46 -0700 |
| commit | 7afcbf0370c2eadc583869c2abe6ddf57380badf (patch) | |
| tree | 17cc3e795d906c6cb9f4510dfc2868c2c33e1610 | |
| parent | bfba4ece076a2d0f9869b71ba272df0d7e69aafd (diff) | |
| download | meson-7afcbf0370c2eadc583869c2abe6ddf57380badf.tar.gz | |
build: remove validation of vs_module_defs
We have type checking, we also have interpreter level validation from
the DSL, we don't need this.
| -rw-r--r-- | mesonbuild/build.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index d046d836f..e4f3ab2b6 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1857,13 +1857,9 @@ class BuildTarget(Target): elif isinstance(path, File): # When passing a generated file. self.vs_module_defs = path - elif isinstance(path, (CustomTarget, CustomTargetIndex)): + else: # When passing output of a Custom Target self.vs_module_defs = File.from_built_file(path.get_subdir(), path.get_filename()) - else: - raise InvalidArguments( - 'vs_module_defs must be either a string, ' - 'a file object, a Custom Target, or a Custom Target Index') self.process_link_depends(path) def extract_targets_as_list(self, kwargs: BuildTargetKeywordArguments, key: T.Literal['link_with', 'link_whole']) -> T.List[LibTypes]: |
