1# This file is generated by cargo2rulesmk.py --run --config cargo2rulesmk.json. 2# Do not modify this file as changes will be overridden on upgrade. 3 4LOCAL_DIR := $(GET_LOCAL_DIR) 5MODULE := $(LOCAL_DIR) 6MODULE_CRATE_NAME := libc 7MODULE_SRCS := \ 8 $(LOCAL_DIR)/src/lib.rs \ 9 10MODULE_ADD_IMPLICIT_DEPS := false 11MODULE_RUST_EDITION := 2015 12MODULE_RUSTFLAGS += \ 13 --cfg 'freebsd11' \ 14 --cfg 'libc_align' \ 15 --cfg 'libc_cfg_target_vendor' \ 16 --cfg 'libc_const_extern_fn' \ 17 --cfg 'libc_const_size_of' \ 18 --cfg 'libc_core_cvoid' \ 19 --cfg 'libc_int128' \ 20 --cfg 'libc_long_array' \ 21 --cfg 'libc_non_exhaustive' \ 22 --cfg 'libc_packedN' \ 23 --cfg 'libc_priv_mod_use' \ 24 --cfg 'libc_ptr_addr_of' \ 25 --cfg 'libc_underscore_const_names' \ 26 --cfg 'libc_union' \ 27 -A unknown-lints \ 28 29MODULE_LIBRARY_DEPS := \ 30 trusty/user/base/lib/libcompiler_builtins-rust \ 31 trusty/user/base/lib/libcore-rust \ 32 33ifeq ($(call TOBOOL,$(TRUSTY_USERSPACE)),true) 34 35MODULE_RUSTFLAGS += \ 36 --cfg 'feature="trusty_sys"' \ 37 38MODULE_LIBRARY_DEPS += \ 39 trusty/user/base/lib/libc-trusty \ 40 trusty/user/base/lib/trusty-sys \ 41 42endif 43 44include make/library.mk 45