Skip to content

Commit da56d72

Browse files
committed
rust.proc_macro: fix type of kwargs["native"]
Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 4addf4b commit da56d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/modules/rust.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ def bindgen(self, state: ModuleState, args: T.List, kwargs: FuncBindgen) -> Modu
705705
@typed_pos_args('rust.proc_macro', str, varargs=SOURCES_VARARGS)
706706
@typed_kwargs('rust.proc_macro', *SHARED_LIB_KWS, allow_unknown=True)
707707
def proc_macro(self, state: ModuleState, args: T.Tuple[str, SourcesVarargsType], kwargs: _kwargs.SharedLibrary) -> SharedLibrary:
708-
kwargs['native'] = True # type: ignore
708+
kwargs['native'] = MachineChoice.BUILD
709709
kwargs['rust_crate_type'] = 'proc-macro'
710710
kwargs['rust_args'] = kwargs['rust_args'] + ['--extern', 'proc_macro']
711711
target = state._interpreter.build_target(state.current_node, args, kwargs, SharedLibrary)

0 commit comments

Comments
 (0)