mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 02:24:38 +00:00
rust: subprojects: add libc crate
This allows access to errno values. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
1
subprojects/.gitignore
vendored
1
subprojects/.gitignore
vendored
@@ -11,6 +11,7 @@
|
||||
/bilge-impl-0.2.0
|
||||
/either-1.12.0
|
||||
/itertools-0.11.0
|
||||
/libc-0.2.162
|
||||
/proc-macro-error-1.0.4
|
||||
/proc-macro-error-attr-1.0.4
|
||||
/proc-macro2-1.0.84
|
||||
|
||||
7
subprojects/libc-0.2-rs.wrap
Normal file
7
subprojects/libc-0.2-rs.wrap
Normal file
@@ -0,0 +1,7 @@
|
||||
[wrap-file]
|
||||
directory = libc-0.2.162
|
||||
source_url = https://crates.io/api/v1/crates/libc/0.2.162/download
|
||||
source_filename = libc-0.2.162.tar.gz
|
||||
source_hash = 18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398
|
||||
#method = cargo
|
||||
patch_directory = libc-0.2-rs
|
||||
37
subprojects/packagefiles/libc-0.2-rs/meson.build
Normal file
37
subprojects/packagefiles/libc-0.2-rs/meson.build
Normal file
@@ -0,0 +1,37 @@
|
||||
project('libc-0.2-rs', 'rust',
|
||||
meson_version: '>=1.5.0',
|
||||
version: '0.2.162',
|
||||
license: 'MIT OR Apache-2.0',
|
||||
default_options: [])
|
||||
|
||||
_libc_rs = static_library(
|
||||
'libc',
|
||||
files('src/lib.rs'),
|
||||
gnu_symbol_visibility: 'hidden',
|
||||
override_options: ['rust_std=2015', 'build.rust_std=2015'],
|
||||
rust_abi: 'rust',
|
||||
rust_args: [
|
||||
'--cap-lints', 'allow',
|
||||
'--cfg', 'freebsd11',
|
||||
'--cfg', 'libc_priv_mod_use',
|
||||
'--cfg', 'libc_union',
|
||||
'--cfg', 'libc_const_size_of',
|
||||
'--cfg', 'libc_align',
|
||||
'--cfg', 'libc_int128',
|
||||
'--cfg', 'libc_core_cvoid',
|
||||
'--cfg', 'libc_packedN',
|
||||
'--cfg', 'libc_cfg_target_vendor',
|
||||
'--cfg', 'libc_non_exhaustive',
|
||||
'--cfg', 'libc_long_array',
|
||||
'--cfg', 'libc_ptr_addr_of',
|
||||
'--cfg', 'libc_underscore_const_names',
|
||||
'--cfg', 'libc_const_extern_fn',
|
||||
],
|
||||
dependencies: [],
|
||||
)
|
||||
|
||||
libc_dep = declare_dependency(
|
||||
link_with: _libc_rs,
|
||||
)
|
||||
|
||||
meson.override_dependency('libc-0.2-rs', libc_dep)
|
||||
Reference in New Issue
Block a user