platform_build_soong/python
Jiyong Park 1613e5541f HostCross is an attribute of a Target, not OsType
A host target is considered as being cross-compiled when the target
can't run natively on the build machine. For example, linux_glibc/x86_64
is a non-cross target on a standard x86/Linux machine, but is a cross
host on Mac. Previously, whether cross or not was a static attribute of
an OsType. For example, Windows was always considered as cross host,
while linux_bionic was not. This becomes a problem when we support more
host targets like linux_bionic/arm64 which should be cross-host on
standard x86/Linux machines.

This change removes HostCross from the OsClass type and instead adds a
property HostCross to the Target type. When a target is being added, it
is initialized to true when the target can't run natively on the current
build machine.

Bug: 168086242
Test: m
Change-Id: Ic37c8db918873ddf324c86b12b5412952b0f2be2
2020-09-24 14:14:31 +09:00
..
scripts Simplify python launcher, use __main__.py 2019-02-15 14:33:59 -08:00
tests Add tests for py(2|3)-cmd 2020-02-19 19:40:38 -08:00
Android.bp Soong package structure refactoring 2020-06-01 13:44:48 -07:00
androidmk.go Fix using generated test configs for sh_test, python_test and rust_test modules 2020-06-10 22:48:16 -07:00
binary.go HostCross is an attribute of a Target, not OsType 2020-09-24 14:14:31 +09:00
builder.go Add data_native_bins property to java_test_host 2020-07-27 09:14:06 -07:00
defaults.go Remove empty DepsMutator methods 2019-02-01 17:17:58 -08:00
installer.go Merge "Remove old-style support for translated second architectures" 2019-10-07 20:48:07 +00:00
library.go HostCross is an attribute of a Target, not OsType 2020-09-24 14:14:31 +09:00
proto.go Add RuleBuilder helper functions for built and prebuilt tools 2019-07-11 13:05:19 -07:00
python.go Add data_native_bins property to java_test_host 2020-07-27 09:14:06 -07:00
python_test.go Add data_native_bins property to java_test_host 2020-07-27 09:14:06 -07:00
test.go Fix using generated test configs for sh_test, python_test and rust_test modules 2020-06-10 22:48:16 -07:00