platform_build_soong/cc
Jiyong Park 5e676fe9f0 Fix: HideFromMake is not registered to llndk_* module types
llndk_* module types are not initialized via cc.Module.Init(). As a
consequence, mutated properties like HideFromMake, etc. were not
registered and this caused problem when the mutated properties are set
by one of the mutators like the sanitizerMutator. Specifically, both
asan and non-asan variant of an llndk_header were both exported to Make
although HideFromMake was set to true for the non-asan variant.

Fixing this bug by explicitly registering BaseProperties struct which
contains the mutated properties.

Bug: 130652996
Test: Following works:
$ lunch aosp_cf_x86_pasan-userdebug
$ mkdir frameworks/native/test && mkdir frameworks/native/test/include
$ cat > frameworks/native/test/Android.bp
llndk_headers {
    name: "test_headers",
    export_include_dirs: ["include"],
}
^D
$ SANITIZE_TARGET='address' make

Change-Id: I44e3668460448d79382617df61171b0ab5b4d98d
2019-04-17 13:17:47 +09:00
..
config Do not re-export _Unwind_XXX symbols. 2019-04-11 17:54:48 -07:00
libbuildversion Add dist support to Soong 2018-11-19 15:26:14 -08:00
androidmk.go Add support for no-vendor-variant VNDK 2019-03-21 04:29:24 +00:00
binary.go Revert "Enable lld for windows" 2019-04-03 00:59:14 +00:00
builder.go Convert yacc to a single RuleBuilder rule 2019-04-15 14:52:05 -07:00
cc.go Convert yacc to a single RuleBuilder rule 2019-04-15 14:52:05 -07:00
cc_test.go Add support for protoc plugins 2019-04-02 16:38:55 +00:00
check.go Allow macro definition with space 2017-10-19 22:39:32 +09:00
cmakelists.go Remove GCC checks 2018-10-09 02:16:58 +00:00
compdb.go Update compdb to put full path to compiler 2019-01-29 17:27:37 +00:00
compiler.go Convert yacc to a single RuleBuilder rule 2019-04-15 14:52:05 -07:00
coverage.go Include libprofile-extras to all coverage variants 2019-03-29 08:56:42 -07:00
gen.go Convert yacc to a single RuleBuilder rule 2019-04-15 14:52:05 -07:00
gen_stub_libs.py Handle the case when a symbol is annotated with "# apex vndk" 2019-02-08 20:36:26 +09:00
gen_test.go Fix using aidl files from filegroups 2017-11-17 11:22:08 -08:00
genrule.go Add support for versioned stubs. 2018-10-30 09:55:48 +09:00
genrule_test.go Allow cc_genrule srcs to vary by architecture 2018-10-23 18:40:37 +00:00
installer.go APEX respects relative_install_path 2019-02-05 21:00:41 +09:00
kernel_headers.go Fix double space in include argument 2018-10-02 11:16:56 -07:00
library.go Add --llndk for NDK libs as well 2019-04-11 05:40:57 +00:00
library_test.go Add cc_library tests 2017-11-17 11:22:04 -08:00
linker.go Make libc_scudo always go first. 2019-04-03 14:54:12 -07:00
llndk_library.go Fix: HideFromMake is not registered to llndk_* module types 2019-04-17 13:17:47 +09:00
lto.go Support LLD ThinLTO cache/threshold option 2019-03-22 21:32:45 -07:00
makevars.go Remove our clang-tidy wrapper 2019-04-04 17:58:00 -07:00
ndk_headers.go Soong: Add synopsis to ndk_* modules. 2019-04-09 18:50:44 -07:00
ndk_library.go Soong: Add synopsis to ndk_* modules. 2019-04-09 18:50:44 -07:00
ndk_prebuilt.go Fix double space in include argument 2018-10-02 11:16:56 -07:00
ndk_sysroot.go Fix package path of android/soong/android pctx 2019-04-04 03:59:34 +00:00
object.go Include libprofile-extras to all coverage variants 2019-03-29 08:56:42 -07:00
pgo.go Turn on new pass manager for PGO projects 2019-03-21 23:43:42 +00:00
prebuilt.go Soong: Add synopsis to cc_prebuilt_* modules. 2019-04-01 17:25:41 +00:00
proto.go Add support for protoc plugins 2019-04-02 16:38:55 +00:00
proto_test.go Skip failing test on mac 2019-04-02 10:02:04 -07:00
pylintrc Don't warn for TODOish comments. 2016-08-01 14:36:22 -07:00
rs.go Use prebuilt llvm-rs-cc for unbundled build 2018-11-18 20:58:10 -08:00
sabi.go Remove flags from ClangLibToolingUnknownCflags 2018-10-16 17:52:12 +08:00
sanitize.go Pass -fsanitize-hwaddress-abi=platform when building with hwasan. 2019-03-21 16:22:00 -07:00
stl.go Do not re-export _Unwind_XXX symbols. 2019-04-11 17:54:48 -07:00
strip.go Use soong_cc_prebuilt.mk instead of prebuilt.mk for Soong cc modules 2018-09-10 23:12:12 -07:00
sysprop.go Create sysprop_library soong module 2019-02-13 23:32:51 +00:00
test.go Soong: Add synopsis to several modules under cc package. 2019-03-25 14:21:29 +00:00
test_data_test.go Replace ctx.ExpandSources with android.PathsForModuleSrc 2019-03-20 19:36:13 +00:00
test_gen_stub_libs.py Handle the case when a symbol is annotated with "# apex vndk" 2019-02-08 20:36:26 +09:00
testing.go Remove libbase dependency of sysprop_library 2019-03-27 17:27:05 +09:00
tidy.go Add support for clang-tidy -warnings-as-errors in Android.bp files 2019-03-26 20:47:08 +00:00
toolchain_library.go Soong: Add synopsis to several modules under the cc package. 2019-04-03 14:43:03 -07:00
util.go Convert yacc to a single RuleBuilder rule 2019-04-15 14:52:05 -07:00
util_test.go Allow cc_prebuilt version suffix to include `svn` 2018-09-26 10:59:56 +08:00
vendor_public_library.go Soong: Add synopsis to several modules under the cc package. 2019-04-03 14:43:03 -07:00
vndk.go Add support for no-vendor-variant VNDK 2019-03-21 04:29:24 +00:00
vndk_prebuilt.go Soong: Add synopsis to vndk_prebuilt_shared module under cc package. 2019-04-03 09:07:51 -07:00
xom.go XOM dependency check skipping static binaries. 2019-01-31 10:09:13 -08:00