compilers: Pass mode to determine_args, not its string value

We always pass the string value of the mode to determine_args, which
causes the check on the mode argument inside determine_args to always
evaluate to false.

Fix this by passing the mode itself, not its value.
pull/13637/head
Andrew McNulty 2 months ago committed by Dylan Baker
parent 2b80d4cca1
commit 9cb9ad88da
  1. 2
      mesonbuild/compilers/mixins/clike.py

@ -417,7 +417,7 @@ class CLikeCompiler(Compiler):
else: else:
# TODO: we want to do this in the caller # TODO: we want to do this in the caller
extra_args = mesonlib.listify(extra_args) extra_args = mesonlib.listify(extra_args)
extra_args = mesonlib.listify([e(mode.value) if callable(e) else e for e in extra_args]) extra_args = mesonlib.listify([e(mode) if callable(e) else e for e in extra_args])
if dependencies is None: if dependencies is None:
dependencies = [] dependencies = []

Loading…
Cancel
Save