diff options
| author | Stephan Lachnit <stephanlachnit@debian.org> | 2024-02-16 13:40:25 +0100 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-02-19 09:12:12 -0500 |
| commit | 43fe0061902f9d204eeeb8d4fef779480ec5487c (patch) | |
| tree | 7c8c9f4ba2e3388dff9893f1b693f052f9f19dfb /mesonbuild | |
| parent | c46d0e733e7a06e71fb125add32e3e8ce31a129c (diff) | |
| download | meson-43fe0061902f9d204eeeb8d4fef779480ec5487c.tar.gz | |
Fix warning when using scan-build
Using scan-build gives the following warning:
"Running the setup command as `meson [options]` instead of
`meson setup [options]` is ambiguous and deprecated."
This commit fixes this issue by adding the setup keyword to the meson command.
Diffstat (limited to 'mesonbuild')
| -rw-r--r-- | mesonbuild/backend/ninjabackend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 782b264ac..2606ac43a 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -3574,7 +3574,7 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485''')) return cmd = self.environment.get_build_command() + \ ['--internal', 'scanbuild', self.environment.source_dir, self.environment.build_dir, self.build.get_subproject_dir()] + \ - self.environment.get_build_command() + self.get_user_option_args() + self.environment.get_build_command() + ['setup'] + self.get_user_option_args() elem = self.create_phony_target('scan-build', 'CUSTOM_COMMAND', 'PHONY') elem.add_item('COMMAND', cmd) elem.add_item('pool', 'console') |
