platform_build_soong/cc
Jiyong Park 1d1119f4bd Fix sanitizer dep
This change fixes a problem in sanitizerMutator where a module is linked
with of non-sanitized variant of a lib at build-time, but is linked with
the sanitized variant of the lib at run-time.

This happened because, for each sanitizer type, every shared libs are
split into non-sanitized and sanitized variants, and then either of the
variants are suppressed from Make so that it isn't installed to the
device.

This change fixes the problem by NOT splitting for shared libs; only the
sanitized variant is created if needed. Header libs, static libs and
shared libs for a few sanitizer types (asan/fuzzer) are however split
into two. This is because the static and headers libs become part of the
depending module, and asan/fuzzer require that the depending module and
the dependant module should be compiled for the same sanitizer.

Bug: 138103882
Bug: 138426065
Test: m com.android.runtime.debug
Check that libziparchive exists under both
/system/apex/com.android.runtime/[lib|lib64]

Change-Id: Ia447785c485c0d049e19477b32bc638bfe6f1608
2019-08-08 01:51:26 +09:00
..
config Add the cc_fuzz target. 2019-07-16 16:30:53 -07:00
libbuildversion Add dist support to Soong 2018-11-19 15:26:14 -08:00
androidmk.go Separate exported includes out of flags 2019-06-11 10:37:56 +09:00
binary.go Use ctx.Target().NativeBridge to detect if the arch is translated or not 2019-07-10 18:07:38 +09:00
builder.go Support source code cross-referencing for C++ and Java 2019-07-26 09:16:47 -07:00
cc.go Fix sanitizer dep 2019-08-08 01:51:26 +09:00
cc_test.go filegroup.path is used to specify the include path for aidl files 2019-07-19 11:31:31 +09: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 Treat .cxx files as c++ 2019-06-27 14:46:10 -07:00
compiler.go Specify the API level via the triple instead of __ANDROID_API__. 2019-07-25 17:18:22 -07:00
coverage.go Wrap getenv when linking a coverage-enabled binary 2019-07-03 15:28:54 -07:00
fuzz.go Disable linux_bionic fuzzers 2019-07-24 21:13:05 +00:00
gen.go filegroup.path is used to specify the include path for aidl files 2019-07-19 11:31:31 +09: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 filegroup.path is used to specify the include path for aidl files 2019-07-19 11:31:31 +09:00
genrule.go Let genrule be mutatable by the apex mutator 2019-06-12 13:28:11 +09:00
genrule_test.go Allow cc_genrule srcs to vary by architecture 2018-10-23 18:40:37 +00:00
installer.go Make relative path for native_bridge binaries configurable 2019-07-15 20:04:07 +02:00
kernel_headers.go Separate exported includes out of flags 2019-06-11 10:37:56 +09:00
library.go Add sort_bss_symbols_by_size property for shared libs 2019-07-29 13:25:55 -07:00
library_test.go Add cc_library tests 2017-11-17 11:22:04 -08:00
linker.go Add sort_bss_symbols_by_size property for shared libs 2019-07-29 13:25:55 -07:00
llndk_library.go Fix sanitizer dep 2019-08-08 01:51:26 +09:00
lto.go Support LLD ThinLTO cache/threshold option 2019-03-22 21:32:45 -07:00
makevars.go Merge "Specify the API level via the triple instead of __ANDROID_API__." 2019-07-30 01:23:04 +00:00
ndk_headers.go Soong: Add synopsis to ndk_* modules. 2019-04-09 18:50:44 -07:00
ndk_library.go Add neuralnetworks to ndkPrebuiltSharedLibs 2019-07-26 08:57:54 +00:00
ndk_prebuilt.go Separate exported includes out of flags 2019-06-11 10:37:56 +09:00
ndk_sysroot.go Fix package path of android/soong/android pctx 2019-04-04 03:59:34 +00:00
object.go Add header_libs to cc_object 2019-07-18 15:58:58 +01:00
pgo.go Remove redundant -fexperimental-new-pass-manager 2019-06-14 09:54:23 -07:00
prebuilt.go Separate exported includes out of flags 2019-06-11 10:37:56 +09:00
prebuilt_test.go Move CreateTestContext to cc/testing.go 2019-05-17 08:43:36 -07:00
proto.go Add support for protoc plugins 2019-04-02 16:38:55 +00:00
proto_test.go Fix tests with cc_binary_host on mac 2019-04-22 15:55:56 -07:00
pylintrc Don't warn for TODOish comments. 2016-08-01 14:36:22 -07:00
rs.go Renderscript: rename .rs extension to .rscript 2019-07-17 18:57:32 +00:00
sabi.go Separate exported includes out of flags 2019-06-11 10:37:56 +09:00
sanitize.go Fix sanitizer dep 2019-08-08 01:51:26 +09:00
stl.go Do not re-export _Unwind_XXX symbols. 2019-04-11 17:54:48 -07:00
strip.go Omit .gnu_debuglink sections in object files 2019-05-31 15:07:16 -07:00
sysprop.go Create sysprop_library soong module 2019-02-13 23:32:51 +00:00
test.go Handle test_per_src test variations as dependencies of APEX modules. 2019-07-19 14:15:06 +01: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 filegroup.path is used to specify the include path for aidl files 2019-07-19 11:31:31 +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 Omit .gnu_debuglink sections in object files 2019-05-31 15:07:16 -07:00
util.go Support source code cross-referencing for C++ and Java 2019-07-26 09:16:47 -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 Add dependency to version script when linking stub libraries 2019-06-10 18:02:25 -07:00
vndk.go Fix some typos in Soong. 2019-07-23 17:29:57 +01: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