diff options
author | Jiyong Park <jiyong@google.com> | 2020-12-17 19:31:17 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2020-12-17 19:31:17 +0900 |
commit | ad429d0cd2f34a244b0965fffd33d001e9e1f103 (patch) | |
tree | b6b3483d570b695459826d8d6e70a69ed73e1037 /sdk/java_sdk_test.go | |
parent | 1a74be780b27b6540799dba4a038f6cf1431d0fe (diff) |
SOONG_* variables are emitted only for the BuildOS variants
When HOST_OS=linux and HOST_CROSS_OS=linux_bionic, then a module enabled
for the target "linux" is mutated for both linux(linux_glibc) and
linux_bionic. Although this is WAI for most of the host modules, but
also causes duplocated SOONG_* variables from prebuilt_build_tools
modules. They are configured as HostSupportedNoCross, but linux_glibc
and linux_bionic are not considered as HostCross on the regular
linux/x86 machines, because it can run artifacts from both variants
natively.
Since the problem is at SOONG_* variables, not in the fact that
linux_bionic is not considered as HostCross, fixing the problem by
emitting the variable only for the variants whose OS is the same as the
build system OS (android.BuildOS).
Bug: N/A
Test: apply aosp/1512778, lunch mainline_sdk && m nothing.
out/soong/make_vars-mainline_sdk.mk doesn't have duplicated SOONG_*
variables.
Change-Id: Ieb51d180b7c1ee758e7a376a960a8c3b91c836c9
Diffstat (limited to 'sdk/java_sdk_test.go')
0 files changed, 0 insertions, 0 deletions