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