modules/rust: remove missed cargs.extend()

pull/12403/head
Dylan Baker 1 year ago committed by Nirbheek Chauhan
parent bf9314e00d
commit e6e07f46ea
  1. 1
      mesonbuild/modules/rust.py

@ -243,7 +243,6 @@ class RustModule(ExtensionModule):
# 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)

Loading…
Cancel
Save