backends/ninja: only pass project specific arguments to scan-build

Currently all arguments are being passed to scan-build as part of the
refactoring of how Meson internally handles arguments, but that's wrong,
only project specific arguments are supposed to be passed.

Fixes: #8818
0.58
Dylan Baker 3 years ago committed by Nirbheek Chauhan
parent bbeb19c653
commit 1f53a7d2fb
  1. 1
      mesonbuild/backend/ninjabackend.py

@ -3001,6 +3001,7 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
def get_user_option_args(self):
cmds = []
for (k, v) in self.environment.coredata.options.items():
if k.is_project():
cmds.append('-D' + str(k) + '=' + (v.value if isinstance(v.value, str) else str(v.value).lower()))
# The order of these arguments must be the same between runs of Meson
# to ensure reproducible output. The order we pass them shouldn't

Loading…
Cancel
Save