diff options
author | Andrew Walbran <qwandor@google.com> | 2022-11-22 18:32:20 +0000 |
---|---|---|
committer | Andrew Walbran <qwandor@google.com> | 2022-11-22 18:34:47 +0000 |
commit | 9c9761c0f87434af722a47b7250c2bbd611df3f4 (patch) | |
tree | 66d6aaad57ebbbf4f56ea3790df706ae91f219d9 | |
parent | 7d89f5f0af470283f86172e23b68154dd9c4e26f (diff) | |
download | log-9c9761c0f87434af722a47b7250c2bbd611df3f4.tar.gz |
Allow no_std library to be used on host too.
This makes it easier to test other libraries which depend on it.
Bug: 237249743
Test: atest virtio-drivers_test_src_lib
Change-Id: Ifa20552f9bde93cf5a6e7d75354bf7c43b838174
-rw-r--r-- | Android.bp | 1 | ||||
-rw-r--r-- | cargo2android_nostd.bp | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -65,6 +65,7 @@ rust_library { rust_library { name: "liblog_rust_nostd", + host_supported: true, crate_name: "log", cargo_env_compat: true, cargo_pkg_version: "0.4.14", diff --git a/cargo2android_nostd.bp b/cargo2android_nostd.bp index 5fc0d14..7b47f41 100644 --- a/cargo2android_nostd.bp +++ b/cargo2android_nostd.bp @@ -1,5 +1,6 @@ rust_library { name: "liblog_rust_nostd", + host_supported: true, crate_name: "log", cargo_env_compat: true, cargo_pkg_version: "0.4.14", |