aboutsummaryrefslogtreecommitdiff
path: root/rules.mk
blob: 008e09d2812a36d4e90b2562d863fa7372cbcb3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This file is generated by cargo2rulesmk.py --run --config cargo2rulesmk.json.
# Do not modify this file as changes will be overridden on upgrade.

LOCAL_DIR := $(GET_LOCAL_DIR)
MODULE := $(LOCAL_DIR)
MODULE_CRATE_NAME := libc
MODULE_SRCS := \
	$(LOCAL_DIR)/src/lib.rs \

MODULE_ADD_IMPLICIT_DEPS := false
MODULE_RUST_EDITION := 2015
MODULE_RUSTFLAGS += \
	--cfg 'freebsd11' \
	--cfg 'libc_align' \
	--cfg 'libc_cfg_target_vendor' \
	--cfg 'libc_const_extern_fn' \
	--cfg 'libc_const_size_of' \
	--cfg 'libc_core_cvoid' \
	--cfg 'libc_int128' \
	--cfg 'libc_long_array' \
	--cfg 'libc_non_exhaustive' \
	--cfg 'libc_packedN' \
	--cfg 'libc_priv_mod_use' \
	--cfg 'libc_ptr_addr_of' \
	--cfg 'libc_underscore_const_names' \
	--cfg 'libc_union' \
	-A unknown-lints \

MODULE_LIBRARY_DEPS := \
	external/rust/crates/rustc-std-workspace-core \
	trusty/user/base/lib/libcompiler_builtins-rust \
	trusty/user/base/lib/libcore-rust \
	trusty/user/base/lib/libc-trusty \

include make/library.mk