commit | b6b0fd7151e66d8b10e3efbaa92a1c6849763d20 | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Mon Aug 31 17:46:32 2020 +0900 |
committer | Jiyong Park <jiyong@google.com> | Thu Sep 17 14:53:53 2020 +0900 |
tree | 24d901185a1747f33b107ba81703b38d70e49fd8 | |
parent | a48b5a086305aa7f2d68683a98a7b8eabf21b91d [diff] |
Enable libandroid_log_sys for host libandroid_log_sys is used when target_os is set to android. Previously the os type was used only when building for the device target. But with the introduction of the Linux/ARM host support, the os type is used for the cross-compiling host target as well. This is because the rust compiler doesn't yet support 'aarch64-linux' (without the -android suffix) for the Linux/ARM64 host target. It does support aarch-unknown-linux-gnu, but we can't use it due to the glibc dependency which we won't add for the host target; we use bionic. Until we add aarch64-linux to the supported target list, we have to use aarch64-linux-android for the cross-compiling host target. libandroid_log_sys is enabled for host to satisfy the dependencies from other rust binaries (e.g. crosvm) tht are built for the host target. Note that the module is still disabled for linux_glibc target because the build system doesn't add liblog as a dependency for the target. Bug: 159685774 Test: HOST_CROSS_OS=linux_bionic HOST_CROSS_ARCH=arm64 m crosvm Change-Id: I70437a6ba1d14cdd02c1950d45b232db41a47368
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.