Skip to content

Commit

Permalink
compilers: Pass mode to determine_args, not its string value
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amcn authored and dcbaker committed Sep 17, 2024
1 parent 2b80d4c commit 9cb9ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/compilers/mixins/clike.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def build_wrapper_args(self, env: 'Environment',
else:
# TODO: we want to do this in the caller
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:
dependencies = []
Expand Down

0 comments on commit 9cb9ad8

Please sign in to comment.