Skip to content

Commit

Permalink
modules/rust: remove missed cargs.extend()
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker authored and nirbheek committed Oct 20, 2023
1 parent bf9314e commit e6e07f4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mesonbuild/modules/rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ def bindgen(self, state: ModuleState, args: T.List, kwargs: FuncBindgen) -> Modu
# We only want include directories and defines, other things may not be valid
cargs = state.get_option('args', state.subproject, lang='c')
assert isinstance(cargs, list), 'for mypy'
clang_args.extend(cargs)
for a in itertools.chain(state.global_args.get('c', []), state.project_args.get('c', []), cargs):
if a.startswith(('-I', '/I', '-D', '/D', '-U', '/U')):
clang_args.append(a)
Expand Down

0 comments on commit e6e07f4

Please sign in to comment.