platform_build_soong/cc
Jooyung Han 7556839772 Enforce apex.min_sdk_version for bundled builds
Previously, when Q-targeting apexes are bundled-built, they are built
against the latest stubs.

It was because unwinder is linked dynamically in R and APIs are provided
by libc while Q apexes should run on Q where libc doesn't provide those
APIs. To make Q apexes run on Q device, libc++ should be linked with
static unwinder. But, because libc++ with static unwinder may cause problem
on HWASAN build, Q apexes were built against the latest stubs for bundled
build.

However, Q apexes should be built against Q stubs.

Now, only for HWASAN builds, Q apexes are built against the latest stubs
(and native modules are not linked with static unwinder).

Bug: 151912436
Test: TARGET_SANITIZE=hwaddress m
      => Q apexes(media, resolv, ..) are linked with the latest stubs
      m
      => Q apexes are linked with Q stubs,
         and Q apexes' libc++ is linked with static unwinder
Merged-In: If32f1b547e6d93e3955c7521eec8aef5851f908c
Change-Id: If32f1b547e6d93e3955c7521eec8aef5851f908c
(cherry picked from commit 7406660685)

Exempt-From-Owner-Approval: cp from internal
Change-Id: If32f1b547e6d93e3955c7521eec8aef5851f908c
2020-04-02 03:34:30 +00:00
..
config Merge "Switch from clang-r377782b to clang-r377782c." 2020-03-19 00:04:39 +00:00
libbuildversion Add dist support to Soong 2018-11-19 15:26:14 -08:00
androidmk.go Add version suffix for stub modules' Android.mk 2020-03-07 03:12:45 +09:00
binary.go Add support for cc_binary in module_exports 2020-02-18 16:17:35 +00:00
binary_sdk_member.go Propagate empty vs unspecified system_shared_libs correctly. 2020-03-25 23:19:37 +00:00
builder.go Do not add ccWrapper to ccNoDeps rule 2020-02-18 08:00:17 -08:00
cc.go Enforce apex.min_sdk_version for bundled builds 2020-04-02 03:34:30 +00:00
cc_test.go Revert "Revert "Enforce min_sdk_version of apex(use_vendor:true)"" 2020-03-21 23:23:14 +09:00
ccdeps.go Fix writing module_bp_cc_deps.json 2020-01-31 18:12:41 +00:00
cflag_artifacts.go Simple refactoring of prefix related functions. 2020-02-14 14:33:49 -08:00
check.go Forbid -Weverything 2019-11-12 15:55:03 -08:00
cmakelists.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
compdb.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
compiler.go Pass min_sdk_version to cc __ANDROID_SDK_VERSION__ 2020-03-21 23:29:59 +09:00
compiler_test.go Expand ClangExtraExternalCflags to non-Google vendor projects 2019-11-11 13:24:39 -08:00
coverage.go Merge "Add coverage flags for Clang coverage builds." 2020-01-22 22:34:35 +00:00
fuzz.go Merge "[cc_fuzz] Export DSO symbols to /symbols/data/" 2020-03-26 20:54:33 +00:00
gen.go Fix header deps of sysprop_library 2020-02-19 15:30:02 +09:00
gen_stub_libs.py Remove unused mips workarounds. 2020-03-06 18:15:44 -08:00
gen_test.go Use empty string for core image variant 2019-12-13 20:44:36 -08:00
genrule.go Add ramdisk image. 2020-01-22 16:54:18 -08:00
genrule_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
installer.go Disable installation for sdk snapshot versioned prebuilts 2020-03-11 18:31:45 +00:00
kernel_headers.go Change exportedDirs and exportedSystemDirs from []string to android.Paths 2019-10-25 09:52:08 +09:00
library.go Merge "Fix the logic for selecting ABI dump paths" 2020-03-31 02:30:55 +00:00
library_headers.go Add SDK member support for cc_object. 2020-03-20 00:16:14 +00:00
library_headers_test.go Add cc_prebuilt_library_headers 2020-02-24 14:49:22 +00:00
library_sdk_member.go Propagate empty vs unspecified system_shared_libs correctly. 2020-03-25 23:19:37 +00:00
library_test.go Use empty string for core image variant 2019-12-13 20:44:36 -08:00
linkable.go apex: choose stub according to min_sdk_version 2020-03-07 03:12:45 +09:00
linker.go Propagate empty vs unspecified system_shared_libs correctly. 2020-03-25 23:19:37 +00:00
llndk_library.go Revert "Revert "Enforce min_sdk_version of apex(use_vendor:true)"" 2020-03-21 23:23:14 +09:00
lto.go Split local and global cflags 2019-11-07 15:27:58 -08:00
makevars.go Exclude dirs from binder interface whitelisting 2019-12-04 09:10:21 -08:00
ndk_headers.go Remove unused mips workarounds. 2020-03-06 18:15:44 -08:00
ndk_library.go Remove unused mips workarounds. 2020-03-06 18:15:44 -08:00
ndk_prebuilt.go Expose some factories for aidl_test.go 2019-12-09 18:21:48 +09:00
ndk_sysroot.go Expose some factories for aidl_test.go 2019-12-09 18:21:48 +09:00
object.go Add SDK member support for cc_object. 2020-03-20 00:16:14 +00:00
object_test.go Allow linker scripts when building objects. 2019-08-22 13:21:37 -07:00
pgo.go Add platform-wide sampling PGO option 2020-03-24 07:04:54 -07:00
prebuilt.go Add cc_prebuilt_object. 2020-03-20 00:15:35 +00:00
prebuilt_test.go Add cc_prebuilt_object. 2020-03-20 00:15:35 +00:00
proto.go Split local and global cflags 2019-11-07 15:27:58 -08:00
proto_test.go Use empty string for core image variant 2019-12-13 20:44:36 -08:00
pylintrc
rs.go Move/dedupe some host path functions in package_ctx.go. 2019-12-09 22:04:21 +00:00
sabi.go Revert "Also package recursive jni_libs deps of android_apps as well as direct deps." 2019-12-18 00:15:07 +00:00
sanitize.go Revert "Reenable the new pass manager in hwasan builds." 2020-03-27 19:42:01 +00:00
snapshot_utils.go Capture snapshot headers in parallel 2020-03-04 23:39:42 +09:00
stl.go Do not explicitly link ucrt, ucrtbase 2020-03-06 15:07:19 -08:00
strip.go Remove use_gnu_strip option 2019-09-13 12:18:47 -07:00
sysprop.go Implement sysprop_library API stability check 2019-08-23 06:28:34 +00:00
test.go Support arch variant for data attribute 2020-02-25 16:34:39 -08:00
test_data_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
test_gen_stub_libs.py Rename # vndk tag to # llndk 2019-11-13 05:50:27 +00:00
testing.go Enforce apex.min_sdk_version for bundled builds 2020-04-02 03:34:30 +00: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 Repack libgcc.a to only include required objects 2019-10-24 16:34:54 -07:00
util.go Reorder local and global flags 2019-11-07 15:27:58 -08:00
vendor_public_library.go Split local and global cflags 2019-11-07 15:27:58 -08:00
vendor_snapshot.go Capture snapshot headers in parallel 2020-03-04 23:39:42 +09:00
vndk.go Revert "Revert "Enforce min_sdk_version of apex(use_vendor:true)"" 2020-03-21 23:23:14 +09:00
vndk_prebuilt.go Do not hide VNDK prebuilts from make 2020-02-17 19:01:13 +09:00