platform_build_soong/cc
Paul Duffin 6d119b804c Fix mutator ordering issue in apex tests
Previously, the override mutators were being run before the prebuilt
mutators that did not match the runtime behavior. This change fixes
that ordering.

In the process it broke TestApexWithAppImportsPrefer. That test tries
to verify that an apex that depends on an android_app will use an
android_app_import if that is preferred. Unfortunately, it only worked
because of the incorrect order of the mutators.

The test worked before this change because the prebuilt mutators were
being run after the overridableModuleDepsMutator. That meant that any
dependencies added by that mutator onto source modules could be
replaced by the PrebuiltPostDepsMutator with the preferred prebuilt
module.

Switching the order to match the runtime meant that the prebuilt
mutators were run before the overrides so never had a chance to replace
the dependencies added by the overrides.

Bug: 181953909
Bug: 181974714
Test: m nothing
Change-Id: Ic98fdc29a63155174a3227e7e918b26f0a8763bb
2021-03-05 18:38:58 +00:00
..
config Remove Abseil checks from clang-tidy defaults. 2021-03-01 13:25:03 -08:00
libbuildversion Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
ndk_api_coverage_parser Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
ndkstubgen Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
symbolfile Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
Android.bp Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
androidmk.go Add ctx to AndroidMkExtraEntriesFunc 2021-02-19 23:05:40 +00:00
api_level.go Replace stringly-typed API levels. 2020-09-18 12:41:28 -07:00
binary.go bp2build: convert paths/module refs to Bazel label 2021-02-04 13:45:56 -05:00
binary_sdk_member.go Create fewer empty version variants 2020-10-05 18:57:21 -07:00
builder.go Merge "Soong: add missing header-abi-dumper inputs" 2020-12-09 07:26:36 +00:00
cc.go Merge "Support cc_object modules in mixed builds" 2021-03-02 16:44:56 +00:00
cc_test.go Merge "Only export sysprop headers in exported sysprop include directory" 2021-02-23 15:28:26 +00:00
ccdeps.go Add soong cc and java deps to general-tests dist 2020-07-06 16:19:56 -07:00
cflag_artifacts.go Pass pctx and ctx to NewRuleBuilder 2020-12-01 16:22:16 -08:00
check.go Remove unnecessary snake case variables. 2020-12-22 12:38:35 -08:00
cmakelists.go Remove unnecessary snake case variables. 2020-12-22 12:38:35 -08:00
compdb.go
compiler.go reverses common and external Clang flags 2021-02-25 01:34:08 +00:00
compiler_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
coverage.go Build against cfi supported coverage lib 2021-01-14 11:46:10 -08:00
fuzz.go Non-installable module should not be installed into a fuzzer .zip package 2021-02-17 16:40:25 +00:00
gen.go Export aidl, proto and sysprop generated headers separately 2021-02-22 18:05:10 +00:00
gen_test.go Reland: Rewrite sbox to use a textproto manifest 2020-11-20 15:45:04 -08:00
genrule.go Define odm_available property to install a vendor variant to odm 2021-01-25 17:08:44 +09:00
genrule_test.go Move genrule on top of RuleBuilder 2020-11-17 11:23:45 -08:00
image.go Remove global state on module suffixes from vendor and recovery snapshots 2021-02-01 20:06:29 +09:00
installer.go Only output make targets for uninstallable static libs in the APEX 2020-08-06 22:52:58 +01:00
kernel_headers.go Start using Providers instead of direct module access 2020-10-12 16:55:47 -07:00
library.go Only export sysprop headers in exported sysprop include directory 2021-02-22 18:05:18 +00:00
library_headers.go Merge "Move bazel.Properties to a BazelModuleBase" 2021-02-24 05:53:25 +00:00
library_headers_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
library_sdk_member.go Generated headers may not be arch specific 2021-02-22 18:23:22 +00:00
library_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
linkable.go Use target dependent module to update the name suffix 2021-02-03 19:42:29 +09:00
linker.go bp2build: convert paths/module refs to Bazel label 2021-02-04 13:45:56 -05:00
llndk_library.go Create LLNDK vendor variants when DeviceVndkVersion is not set 2021-01-07 17:19:27 -08:00
lto.go Global ThinLTO: opt out vndk binaries as a workaround 2020-10-09 22:08:11 +08:00
makevars.go Merge "Remove remaining libnativehelper implicit includes" 2021-01-13 06:11:03 +00:00
ndk_headers.go Remove unused mips workarounds. 2020-03-06 18:15:44 -08:00
ndk_library.go Don't create SDK variants for native bridge modules 2021-01-19 15:00:45 -08:00
ndk_prebuilt.go Don't create SDK variants for native bridge modules 2021-01-19 15:00:45 -08:00
ndk_sysroot.go Move stubs related methods out of LinkableInterface 2020-10-29 14:17:54 -07:00
object.go Support cc_object modules in mixed builds 2021-03-01 18:22:34 -05:00
object_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
OWNERS Refactor OWNERS files in platform/build/soong. 2020-10-08 16:14:32 -07:00
pgo.go Remove unnecessary snake case variables. 2020-12-22 12:38:35 -08:00
prebuilt.go Remove deapexer and prebuilt apex select mutators 2021-03-01 17:11:25 +00:00
prebuilt_test.go Refactor 'in_make' to mean Kati is not skipped. 2020-11-23 00:29:18 -05:00
proto.go Pass pctx and ctx to NewRuleBuilder 2020-12-01 16:22:16 -08:00
proto_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
pylintrc Fix pylint issues in gen_stub_libs. 2020-07-16 13:21:43 -07:00
rs.go Remove obsolete PDK build functionality 2020-08-11 01:11:44 +00:00
sabi.go Don't rewrite LLNDK dependencies with .llndk suffix 2020-12-21 17:53:30 -08:00
sanitize.go Remove some global state from vendor and recovery snapshots 2021-02-01 20:02:39 +09:00
sdk.go Remove some global state from vendor and recovery snapshots 2021-02-01 20:02:39 +09:00
sdk_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
snapshot_prebuilt.go Define getSnapshotNameSuffix() 2021-02-26 14:00:03 +09:00
snapshot_utils.go Implement directed vendor snapshot 2021-01-18 20:08:09 +09:00
stl.go Switch platform EH unwinder to prebuilt LLVM libunwind 2021-01-13 19:51:06 -08:00
strip.go Allow stripping host modules 2020-12-04 09:43:49 -08:00
stub_library.go Generate system stub library list at build time 2020-12-01 14:09:03 +09:00
sysprop.go Add comments about sysprop_library 2020-11-24 14:13:31 +09:00
test.go Update test_min_api_level for cc_test 2021-02-20 00:46:21 +00:00
test_data_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
testing.go Fix mutator ordering issue in apex tests 2021-03-05 18:38:58 +00:00
tidy.go Forbit extra quotes in tidy flag lists 2021-02-25 20:46:15 -08:00
toolchain_library.go Improve commenting for cc/builer.go, and kill dead code 2020-12-01 18:28:38 -05:00
util.go Add some comments for VNDK / vendor snapshots 2020-12-10 21:12:39 +09:00
vendor_public_library.go cc: export Stripper struct 2020-08-27 10:13:42 +02:00
vendor_snapshot.go Generate fake versions of modules excluded in directed vendor snapshot. 2021-02-05 17:53:53 +00:00
vendor_snapshot_test.go Define getSnapshotNameSuffix() 2021-02-26 14:00:03 +09:00
vndk.go Add ctx to AndroidMkExtraEntriesFunc 2021-02-19 23:05:40 +00:00
vndk_prebuilt.go Remove global state on module suffixes from vendor and recovery snapshots 2021-02-01 20:06:29 +09:00