mesa/subprojects/packagefiles/linux-raw-sys/meson.build
Vinson Lee 406066c6f6 subprojects: Update linux-raw-sys to 0.7.0
Fix build error with rustix-1.0.7.

error[E0425]: cannot find value `MAP_DROPPABLE` in module `linux_raw_sys::general`
   --> ../subprojects/rustix-1.0.7/src/backend/linux_raw/mm/types.rs:109:51
    |
109 |         const DROPPABLE = linux_raw_sys::general::MAP_DROPPABLE;
    |                                                   ^^^^^^^^^^^^^ not found in `linux_raw_sys::general`

Fixes: 8a2f43c9bd ("util: rust: update to rustix 1.0.7")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13460
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35930>
2025-07-09 06:16:43 +00:00

34 lines
725 B
Meson

# Copyright © 2025 Google
# SPDX-License-Identifier: MIT
project(
'linux-raw-sys',
'rust',
version : '0.7.0',
license : 'MIT OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception',
)
rust_args = [
'--cfg', 'feature="elf"',
'--cfg', 'feature="errno"',
'--cfg', 'feature="general"',
'--cfg', 'feature="if_ether"',
'--cfg', 'feature="ioctl"',
'--cfg', 'feature="net"',
'--cfg', 'feature="netlink"',
'--cfg', 'feature="no_std"',
'--cfg', 'feature="xdp"',
]
lib = static_library(
'linux_raw_sys',
'src/lib.rs',
rust_args : rust_args,
override_options : ['rust_std=2021', 'build.rust_std=2021'],
rust_abi : 'rust',
native : true,
)
dep_linux_raw_sys = declare_dependency(
link_with : [lib]
)