summaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorStephan Lachnit <stephanlachnit@debian.org>2024-02-16 13:40:25 +0100
committerEli Schwartz <eschwartz93@gmail.com>2024-02-19 09:12:12 -0500
commit43fe0061902f9d204eeeb8d4fef779480ec5487c (patch)
tree7c8c9f4ba2e3388dff9893f1b693f052f9f19dfb /mesonbuild
parentc46d0e733e7a06e71fb125add32e3e8ce31a129c (diff)
downloadmeson-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.py2
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')