From 251113fa67c90480707cae9341dd8387f3dd6bbd Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Sun, 14 Aug 2022 01:10:38 +0300 Subject: backend/ninja: omit --backend when regenerating build dir Currently a cosmetic bug is present: once a build dir was regenerated, meson would start showing: User defined options backend: ninja This is not true as user have not defined the option, it is default. Fix this by omitting the `--backend ninja` parameter from "regenerate" In my tests this does not affect the situation when one specifies `--backend ninja` explicitly, it still shows the backend as user-defined after reconfiguration. Fixes: https://github.com/mesonbuild/meson/issues/10632 --- mesonbuild/backend/ninjabackend.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index a1ba7b92e..872cbdf78 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -1197,9 +1197,7 @@ class NinjaBackend(backends.Backend): ['--internal', 'regenerate', self.environment.get_source_dir(), - self.environment.get_build_dir(), - '--backend', - 'ninja'] + self.environment.get_build_dir()] self.add_rule(NinjaRule('REGENERATE_BUILD', c, [], 'Regenerating build files.', -- cgit v1.2.3