platform_build_soong/cc
Jingwen Chen 58ff6801f4 Fix bp2build select generation for inter-attribute soong config
variable usage.

There's bug a in the current soong_config_variable handling
implementation where a soong_config_variable sets conditions_default
value for an attr, and a non-conditions_default value for another attr.
This results in the former attr not properly setting the zero value for
the non-conditions_default select key, resulting in the pretty printer
omitting the attribute totally.

The current implementation in this CL ensures that the zero value is set
whenever this happens at the module level. This is seen in
library_linking_strategy_cc_defaults (see comments in code, and the new
tests)

Test: CI
Bug: 198556411

Change-Id: Ibaeb94508c51a7429fb7a08df610cbb5470f76d2
2021-11-23 08:37:30 +00:00
..
config Merge "Support for OMAPI Vendor stable interface" 2021-11-23 04:54:02 +00:00
libbuildversion
ndk_api_coverage_parser Apply pylint to build/soong/cc/ndk_api_coverage_parser 2021-08-18 17:17:47 +00:00
ndkstubgen Add test for empty stub generation. 2021-06-28 15:50:55 -07:00
symbolfile Revert "Revert "Apply pylint to cc/symbolfile"" 2021-08-19 19:31:54 +00:00
Android.bp Add recovery image sdk trait to cc_library_headers 2021-09-24 17:44:37 +01:00
androidmk.go Use new soong_cc_rust_prebuilt.mk 2021-11-12 13:27:58 -05:00
api_level.go Remove nativeApiLevelFromUserWithDefault 2021-04-15 14:00:00 +09:00
binary.go Merge "Do not add .tidy files as RBE link inputs" 2021-10-27 20:29:04 +00:00
binary_sdk_member.go Refactor SdkMemberType.AddDependencies() 2021-08-31 17:07:07 +01:00
bp2build.go Fix bp2build select generation for inter-attribute soong config 2021-11-23 08:37:30 +00:00
builder.go rust: Emit toc files for cdylibs 2021-11-03 15:34:50 -04:00
cc.go Support host platform cc builds 2021-11-10 21:57:15 +00:00
cc_test.go Merge "rust: Add data_libs and data_bins to rust_test" 2021-11-16 13:46:49 +00:00
ccdeps.go Dump deps for native and java to json files. 2021-11-05 12:06:15 +08:00
cflag_artifacts.go
check.go
cmakelists.go [cc] Switch to -fsanitize-ignorelist 2021-08-27 15:12:56 -07:00
compdb.go
compiler.go Pass --min_sdk_version to aidl compiler 2021-11-06 07:31:50 +09:00
compiler_test.go Conditionally apply rustdoc flags to third party crates 2021-08-02 11:50:34 -07:00
coverage.go Also generate api lists based on symbol files for cc_library rule during build time. 2021-08-24 17:39:45 -07:00
fuzz.go Make installable arch-variant and static vs shared variant for cc modules 2021-10-29 15:00:38 -07:00
gen.go remove support for *.mc files 2021-10-26 11:38:37 -07:00
gen_test.go
genrule.go Add environment variables to cc_genrule commands 2021-09-27 15:56:23 -07:00
genrule_test.go Add environment variables to cc_genrule commands 2021-09-27 15:56:23 -07:00
image.go Separate snapshot definition 2021-07-19 11:42:32 +09:00
image_sdk_traits.go Add ramdisk image sdk trait to cc_library_headers 2021-09-25 10:17:31 +01:00
installer.go Allow for the installation of binaries in xbin 2021-10-19 19:44:13 +00:00
kernel_headers.go
library.go bp2build: add support for soong_config_module_type. 2021-11-08 13:38:28 +00:00
library_headers.go bp2build: Handle export_generated_header property 2021-10-26 15:10:41 -04:00
library_headers_test.go
library_sdk_member.go Add ramdisk image sdk trait to cc_library_headers 2021-09-25 10:17:31 +01:00
library_test.go Expose TocFile via CcInfo 2021-09-16 20:55:10 +00:00
linkable.go rust: Package shared libraries with fuzzer zips 2021-10-14 15:31:47 -04:00
linker.go bp2build; Update handling of linker flags 2021-10-07 16:07:40 -04:00
llndk_library.go Remove obsolete llndk_library 2021-04-26 18:41:00 -07:00
lto.go Revert "Do not build tests with ThinLTO" 2021-10-29 17:53:27 +00:00
makevars.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
native_bridge_sdk_trait.go Add support for native bridge trait 2021-09-23 11:37:57 +01:00
ndk_abi.go Disable ABI dumps on Darwin. 2021-06-07 13:22:30 -07:00
ndk_headers.go Remove draft API support. 2021-04-13 15:55:47 -07:00
ndk_library.go Add tidy_disabled_srcs property. 2021-09-20 18:17:59 -07:00
ndk_prebuilt.go Only store what's used in SharedLibraryInfo 2021-06-08 16:44:23 -04:00
ndk_sysroot.go Make a pass over our codebase cleaning up non-precise / non-inclusive language. 2021-10-28 10:32:07 -07:00
object.go bp2build: Handle export_generated_header property 2021-10-26 15:10:41 -04:00
object_test.go crt objects for APEX and vendor variants have correct target API levels 2021-08-25 16:26:47 +09:00
OWNERS
pgo.go [cc/pgo] Mark pgo.sampling property as an arch-variant 2021-06-18 11:11:46 -07:00
prebuilt.go rust: Emit toc files for cdylibs 2021-11-03 15:34:50 -04:00
prebuilt_test.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
proto.go
proto_test.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
pylintrc
rs.go remove target from every intermediate depFile 2021-07-30 09:47:07 -07:00
sabi.go Remove Fuchsia support from Soong 2021-07-21 20:37:46 -07:00
sanitize.go Merge changes I26198187,Ia904d07b 2021-11-12 19:26:04 +00:00
sanitize_test.go Update memtag code behavior to match comment. 2021-07-08 11:19:15 -04:00
sdk.go Separate snapshot definition 2021-07-19 11:42:32 +09:00
sdk_test.go
snapshot_prebuilt.go Support for rust recovery snapshot. 2021-11-09 08:40:50 -08:00
snapshot_utils.go Support for rust recovery snapshot. 2021-11-09 08:40:50 -08:00
stl.go Remove Fuchsia support from Soong 2021-07-21 20:37:46 -07:00
strip.go bp2build: support strip properties. 2021-06-10 05:22:50 +00:00
stub_library.go Export SOONG_CC_API_XML to Make outside androidmk 2021-09-30 13:11:48 -07:00
sysprop.go
test.go rust: Add data_libs and data_bins to rust_test 2021-11-15 17:18:42 -05:00
test_data_test.go Do not modules in files called "Blueprints". 2021-09-02 11:46:24 +02:00
testing.go rust: Add Recovery Snapshot Soong tests for rust. 2021-11-15 17:11:20 -05:00
tidy.go Switch to clang r433403 2021-09-10 04:20:49 +00:00
toolchain_library.go
util.go Deprecate group_static_libs property 2021-08-30 23:13:03 +00:00
vendor_public_library.go Remove global state from vendor public libraries 2021-04-27 16:26:00 -07:00
vendor_public_library_test.go Export cc vendor functions for usage by rust. 2021-06-03 08:31:55 -04:00
vendor_snapshot.go Add module based host-tools snapshot 2021-09-13 21:29:14 +00:00
vendor_snapshot_test.go rust: Add Recovery Snapshot Soong tests for rust. 2021-11-15 17:11:20 -05:00
vndk.go Mark vndkLibrariesTxt modules as device modules 2021-11-12 09:12:22 -08:00
vndk_prebuilt.go rust: Emit toc files for cdylibs 2021-11-03 15:34:50 -04:00