Skip to content

Commit 54e35c1

Browse files
amcneli-schwartz
authored andcommitted
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. (cherry picked from commit 9cb9ad8)
1 parent 946d52a commit 54e35c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/compilers/mixins/clike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def build_wrapper_args(self, env: 'Environment',
417417
else:
418418
# TODO: we want to do this in the caller
419419
extra_args = mesonlib.listify(extra_args)
420-
extra_args = mesonlib.listify([e(mode.value) if callable(e) else e for e in extra_args])
420+
extra_args = mesonlib.listify([e(mode) if callable(e) else e for e in extra_args])
421421

422422
if dependencies is None:
423423
dependencies = []

0 commit comments

Comments
 (0)