Skip to content

Commit

Permalink
cargo: Remove code not needed anymore
Browse files Browse the repository at this point in the history
If `--extern proc_macro` is really needed, it should be done as part of
rust.proc_macro() method.
  • Loading branch information
xclaesse committed Nov 22, 2023
1 parent a9f9523 commit 9712b42
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mesonbuild/cargo/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,6 @@ def _create_lib(cargo: Manifest, build: builder.Builder, crate_type: manifest.CR

lib: mparser.BaseNode
if cargo.lib.proc_macro or crate_type == 'proc-macro':
rust_args += [build.string('--extern'), build.string('proc_macro')]
kwargs['rust_args'] = build.array(rust_args)
lib = build.method('proc_macro', build.identifier('rust'), posargs, kwargs)
else:
if crate_type in {'lib', 'rlib', 'staticlib'}:
Expand Down

0 comments on commit 9712b42

Please sign in to comment.