]> git.pld-linux.org Git - packages/meson.git/commitdiff
filter out rustc target based on machine type with meson >= 1.3.1; rel 2 auto/th/meson-1.3.1-2
authorJan Palus <atler@pld-linux.org>
Thu, 1 Feb 2024 22:32:27 +0000 (23:32 +0100)
committerJan Palus <atler@pld-linux.org>
Thu, 1 Feb 2024 22:32:27 +0000 (23:32 +0100)
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'

meson.spec
rust-proc-macro-filter-out-target.patch

index a27492d89153f1feba7fa49ed341da54e259d299..f07cd4f0e17baeb7106df8cd9afd173514c0e7df 100644 (file)
@@ -2,7 +2,7 @@ Summary:        High productivity build system
 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/
index 11d97b40ce1d028254b56eec5ec1adfec0bb71af..94f61bb907415914a8275030869684cfa15ab787 100644 (file)
@@ -30,7 +30,7 @@ index 73741a441..191db485d 100644
                  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):
This page took 0.265904 seconds and 4 git commands to generate.