diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-04-30 21:50:26 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-04-30 21:50:26 +0000 |
commit | 5b13805c2e01f8164a2c5e92781c5ca47753d7c1 (patch) | |
tree | ad34adc71d5d004fa5429d91527ab336c659986f | |
parent | ae8928de7558a5a7df579b634e39e4dde40d6732 (diff) | |
parent | b359a1416e0936476a7f2069b3b62f9898017947 (diff) | |
download | serde-build-tools-release.tar.gz |
Snap for 11784721 from b359a1416e0936476a7f2069b3b62f9898017947 to build-tools-releasebuild-tools-release
Change-Id: If92e135144e246cd19473ca76cf76cf09d8f2923
-rw-r--r-- | patches/rules.mk.diff | 17 | ||||
-rw-r--r-- | rules.mk | 11 |
2 files changed, 23 insertions, 5 deletions
diff --git a/patches/rules.mk.diff b/patches/rules.mk.diff index 019e2d9..71d3386 100644 --- a/patches/rules.mk.diff +++ b/patches/rules.mk.diff @@ -1,8 +1,8 @@ diff --git a/rules.mk b/rules.mk -index 442c6fc..6c64bf9 100644 +index 442c6fc..986ff0d 100644 --- a/rules.mk +++ b/rules.mk -@@ -13,9 +13,16 @@ MODULE_RUSTFLAGS += \ +@@ -13,9 +13,25 @@ MODULE_RUSTFLAGS += \ --cfg 'feature="default"' \ --cfg 'feature="derive"' \ --cfg 'feature="serde_derive"' \ @@ -11,11 +11,20 @@ index 442c6fc..6c64bf9 100644 + +MODULE_RUSTFLAGS += \ --cfg 'feature="std"' \ - + ++else ++ ++# avoid cyclic dependence by adding dependencies manually ++MODULE_ADD_IMPLICIT_DEPS := false ++ ++MODULE_DEPS := \ ++ trusty/user/base/lib/libcore-rust/ \ ++ trusty/user/base/lib/libcompiler_builtins-rust/ \ ++ +endif + MODULE_LIBRARY_DEPS := \ + trusty/user/base/lib/liballoc-rust \ external/rust/crates/serde_derive \ - + include make/library.mk @@ -1,4 +1,4 @@ -# This file is generated by cargo2rulesmk.py --run --config cargo2rulesmk.json --features . +# 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) @@ -19,6 +19,15 @@ ifeq ($(call TOBOOL,$(TRUSTY_USERSPACE)),true) MODULE_RUSTFLAGS += \ --cfg 'feature="std"' \ +else + +# avoid cyclic dependence by adding dependencies manually +MODULE_ADD_IMPLICIT_DEPS := false + +MODULE_DEPS := \ + trusty/user/base/lib/libcore-rust/ \ + trusty/user/base/lib/libcompiler_builtins-rust/ \ + endif MODULE_LIBRARY_DEPS := \ |