meson 1.3.1 adds support for 'native: true' param that changes compiler
to one for build machine. same stands for doing 'rust_crate_type: proc-macro'
Summary(pl.UTF-8): System budowania o dużej produktywności
Name: meson
Version: 1.3.1
-Release: 1
+Release: 2
License: Apache v2.0
Group: Development/Tools
#Source0Download: https://github.com/mesonbuild/meson/releases/
priv_dir = self.get_target_private_dir(lt)
commands += compiler.get_include_args(priv_dir, False)
+ # filter out --target arguments for host only proc-macro crate
-+ if compiler.language == 'rust' and hasattr(target, 'rust_crate_type') and target.rust_crate_type == 'proc-macro':
++ if compiler.language == 'rust' and hasattr(target, 'for_machine') and target.for_machine == MachineChoice.BUILD:
+ target_commands = []
+ target_arg = False
+ for (i, v) in enumerate(commands):