Commit graph

2072 commits

Author SHA1 Message Date
Stephen Hines
053e24087b Merge "Switch to clang-r346389c."
am: db89aa2c1d

Change-Id: I93384b066fc2a6aafd89e46ad7c20b80f2e7010d
2019-01-14 14:04:15 -08:00
Stephen Hines
db89aa2c1d Merge "Switch to clang-r346389c." 2019-01-14 21:47:17 +00:00
Vic Yang
b70617a160 Add Symbol_ordering_file property
We add an optional Symbol_ordering_file property to linker properties
to allow modules to specify the order of symbols in the binary.

Bug: 112073665
Test: Build libc with a symbol ordering file and check the resulting
      binary.

Change-Id: Ibb24697cfdee4a5750442cb74f1ee6390d8a6430
2019-01-14 11:00:10 -08:00
Yi Kong
92071899bd Merge "Move -Wno-null-dereference to external only" am: 98975c301e
am: 52e8b1e270

Change-Id: I39e74436a541b308c88cc09995a7887e5f3680a5
2019-01-13 17:53:37 -08:00
Yi Kong
52e8b1e270 Merge "Move -Wno-null-dereference to external only"
am: 98975c301e

Change-Id: Iaeb4dfe5dd99f8b368b4aaeea94868e434653d75
2019-01-13 17:49:15 -08:00
Yi Kong
98975c301e Merge "Move -Wno-null-dereference to external only" 2019-01-14 01:38:38 +00:00
Jiyong Park
dd11dcd66e Merge "Stubs libs are built with version script" am: a374cbb445
am: c287271902

Change-Id: I1658eb55c13121a74ba7618089db43b0481268e5
2019-01-12 16:26:48 -08:00
Jiyong Park
c287271902 Merge "Stubs libs are built with version script"
am: a374cbb445

Change-Id: If72f30160049bb8b40aba9f049db274c6d2db934
2019-01-12 16:22:44 -08:00
Jiyong Park
c1e7f48b4c Stubs libs are built with version script
Stubs libs are built with the generated version script file.

Bug: 120266448 (comment #23)
Test: lunch walleye_hwasan-userdebug
make SANITIZE_TARGET=hwaddress oatdump

Change-Id: I38652e61d0b336227b7f541590b0e70fe291f0a3
2019-01-13 03:11:27 +09:00
Jiyong Park
379de2fab0 APEXes can be sanitized
This change first introduces the interface "Sanitizeable" that
module types other than cc.Module can use to be handled by the sanitizer
mutator. APEX module, by implementing the interface, gets sanitizer
variants.

In doing so, sanitizer.go is refactored so that modules have explicit
dependencies to the runtime sanitizer libraries. This allows the runtime
library to be packaged into the APEX when required. This also completes
the dependency graph; updating the prebuilt sanitizer runtime will
trigger rebuilding of modules using the runtime.

Bug: 120894259
Bug: 121038155
Test: SANITIZE_TARGET=hwaddress m apex.test
Test: TARGET_FLATTEN_APEX=true SANITIZE_TARGET=address m
Change-Id: Ia91576ff48cda3c996350308b75bf83fcf7c23d7
2019-01-13 00:48:47 +09:00
Michael Butler
6cc8462dc2 Merge "Revert "Symbols for libs in APEXes are available"" am: 4fd001280d
am: 54c454d064

Change-Id: Ife218d4a331975d0754fdaeda4593867e218a217
2019-01-11 13:13:55 -08:00
Michael Butler
54c454d064 Merge "Revert "Symbols for libs in APEXes are available""
am: 4fd001280d

Change-Id: I564df995f01f27eea5a44ffc70fd7baf404d3cd1
2019-01-11 13:02:38 -08:00
Michael Butler
eaebd76656 Revert "Symbols for libs in APEXes are available"
This reverts commit 769e50b3c9.

Reason for revert: Likely causing build failure on aosp_x86_64-eng in aosp_master:

"build/make/core/base_rules.mk:271: error: art/build/apex: MODULE.TARGET.SHARED_LIBRARIES.com.android.runtime.host.libart-compiler already defined by art/build/apex."

Change-Id: I83b7caa04b2648e4e4914aae2fa5878516634eed
2019-01-11 20:23:36 +00:00
Jiyong Park
40236a3498 Merge "Symbols for libs in APEXes are available" am: 07feb07a16
am: 3007628413

Change-Id: I3170fcf6ba7f1a4ff46f2dd04d8f152e35ad122c
2019-01-11 10:11:39 -08:00
Jiyong Park
3007628413 Merge "Symbols for libs in APEXes are available"
am: 07feb07a16

Change-Id: I6ef148e599227633baf30b15f84fdd96062d1ea1
2019-01-11 09:51:07 -08:00
Stephen Hines
c0042a2c77 Switch to clang-r346389c.
This cherry-pick update picks up a few patches to improve hwasan, ELF
tls, and LLD for kernel builds.

Bug: http://b/122549771
Test: make checkbuild, boot
Change-Id: I8a90282af41ad4c74df819484ba2c3507e20100f
2019-01-11 09:21:46 -08:00
Jiyong Park
769e50b3c9 Symbols for libs in APEXes are available
The unstripped file for libraries in APEXes are available via
out/target/product/<device>/symbols/apex/<apex_name>/path_to_lib.

This change make the symbol files available by installing the individual
files in APEXes to the directory where the APEXes will be mounted at
(i.e. runtime directory which is /apex/<apex_name>). Note that the files
are not actually packaged to a filesystem image; they are installed just
to create the symbol files under the out directory where developers can
use them for debugging.

Bug: 120846816
Test: m com.android.runtime.debug
There are unstripped files under
out/target/product/walleye/symbols/apex/com.android.runtime.debug

Change-Id: Ib182e2bf8787b7669ccba13814491db35370f468
2019-01-11 23:45:20 +09:00
Jiyong Park
e45af66fc5 Rename non-stubs variant of a lib if it is included in APEX am: b07885714c
am: 8e071293b4

Change-Id: Id156d16ed3e5b8a224d692fbaf00e0d19a42f941
2019-01-09 19:29:36 -08:00
Jiyong Park
8e071293b4 Rename non-stubs variant of a lib if it is included in APEX
am: b07885714c

Change-Id: I01f9965ce641e561ec8429e037789718c73e951b
2019-01-09 19:26:21 -08:00
Jiyong Park
b07885714c Rename non-stubs variant of a lib if it is included in APEX
If a lib is directly included in an APEX (via native_shared_libs
property) and the lib has stubs (via stubs.versions property), then the
ordinary non-stubs variant of the library is renamed to
<libname>.bootstrap in the makefile. At the same time, the stubs variant
of the lib becomes visible and it's name is <libname>.

This ensures that modules in Android.mk build against the stubs
variant thus preventing them from using private APIs in the lib.

The non-stubs variant, however, is used if the module explicitly has
set the new 'bootstrap' property to true. This is useful for building
some early binaries (such as init and vold) which need to run before
APEXes are activated. Since they can't use the bionic libs from the
runtime APEX, they should use the bionic libs left in the system
partition which is called the boostrap bionic.

Bug: 120266448
Test: m
Test: m with https://android-review.googlesource.com/c/platform/bionic/+/849044

Change-Id: I882b8aeb5b29460f07b4424e4f8eb844d6c9a9b0
2019-01-10 09:57:29 +09:00
Dan Willemsen
0302e36cce Merge "Don't expect depfile from .s files" am: 9b84d34be3
am: 20541f773c

Change-Id: Icf4ffa0c93ff7a50a47477e611913adc307b3773
2019-01-04 08:39:56 -08:00
Dan Willemsen
20541f773c Merge "Don't expect depfile from .s files"
am: 9b84d34be3

Change-Id: Ib87334c82091ea52883d5b0273cdcc2bcc43d315
2019-01-04 08:28:42 -08:00
Treehugger Robot
9b84d34be3 Merge "Don't expect depfile from .s files" 2019-01-04 15:19:33 +00:00
Logan Chien
4d713ded4d Do not build lsdump for APEX variants am: fa478c0234
am: e500da9ba6

Change-Id: If18fe0a061fea7e23b59b6ce261b70ae278b2122
2019-01-04 00:40:27 -08:00
Logan Chien
e500da9ba6 Do not build lsdump for APEX variants
am: fa478c0234

Change-Id: I05e604c67099562282fddd9cfc5a2f8672ad584b
2019-01-04 00:35:18 -08:00
Dan Willemsen
fcabb1c518 Don't expect depfile from .s files
.s files (unlike .S files) aren't run through the preprocessor, so -M*
doesn't actually write out a depfile.

Since our ninja is now going to be verifying that the depfile is created
(https://android-review.googlesource.com/861510), don't specify a
depfile for .s files.

Bug: 121058584
Test: apply https://android-review.googlesource.com/861510
Test: cd external/libavc; mma
Change-Id: I1697aa020c63639317c8f4771147026601ae72fc
2019-01-03 23:25:11 -08:00
Logan Chien
fa478c0234 Do not build lsdump for APEX variants
This commit stops building lsdump files for APEX variants since APEX
variants are local to APEX modules themselves.

Bug: 121986692
Test: make findlsdumps  # compare $ANDROID_PRODUCT_OUT/lsdump_paths.txt
Change-Id: I37fcd152d0d84d235a354ea53e53e808dd71464a
2019-01-04 13:28:06 +08:00
Jiyong Park
dafd8fa529 Merge "Fix: stubs lib is installed in APEX" am: f17284e05d
am: 368c7463b5

Change-Id: I9e6d49a7c8da72fdbe4cd2fe8988306133942e88
2019-01-03 15:35:38 -08:00
Jiyong Park
368c7463b5 Merge "Fix: stubs lib is installed in APEX"
am: f17284e05d

Change-Id: I56b89e36a260bf0cb1792285b0eddda775523772
2019-01-03 15:28:53 -08:00
Jiyong Park
67883b3ec6 Fix: stubs lib is installed in APEX
This CL fixes the problem that when a lib is defined with stubs, the
stubs variantof the lib is installed to the APEX. This was happening
because the non-stubs variant is the last variant of the 'version'
variants and addFarVariationDependencies selects the first variant when
the 'version' variant isn't specified.

Fixing the problem by making the non-stubs variant (whose name is "")
the first variant.

Test: m (apex_test)

Change-Id: I1505fd2f29a0d70c916bad51000aa06f2b80b137
2019-01-04 03:37:00 +09:00
Jiyong Park
31b2ec74d3 Fix: 'required' property is ignored am: f7df9b7e55
am: f71e439bc9

Change-Id: Id621ffc23766da4e6854de363f26a455cfb64186
2019-01-03 09:54:40 -08:00
Jiyong Park
f71e439bc9 Fix: 'required' property is ignored
am: f7df9b7e55

Change-Id: I9f9be8cc1da6d598c54d7a71ac672819f35e15da
2019-01-03 09:48:33 -08:00
Jiyong Park
f7df9b7e55 Fix: 'required' property is ignored
This change fixes a bug that the 'required' property of a module is
ignored when the module is using a shared from an APEX. This is
happening because LOCAL_REQUIRED_MODULES is overwritten (with := instead
of +=) when ApexesProvidingSharedLibs is not empty.

Fixing the bug by appending ApexesProvidingSharedLibs to
AndroidMkData.Reuired so that it is handled in android/androidmk.go

Test: m
Test: build with https://android-review.googlesource.com/c/platform/bionic/+/849044
and make sure that system/bin/vold_prepare_subdirs exist.

Change-Id: Ie57bca480ba4198b4da0df1c73e92fa42b5ebda8
2019-01-04 01:19:44 +09:00
Dan Willemsen
60e8a8ddd4 Remove incorrect file comments am: d56097dc27
am: 6053fd4ba7

Change-Id: Ibab200a85543999cc347f8f31e5c7f2c7c823aee
2018-12-27 14:39:35 -08:00
Dan Willemsen
6053fd4ba7 Remove incorrect file comments
am: d56097dc27

Change-Id: I5cfee829375c83b182d4bd78a80f21fed899a674
2018-12-27 14:23:27 -08:00
Dan Willemsen
d56097dc27 Remove incorrect file comments
Test: none
Change-Id: Ia2889ee29c2c0bf18adf5d90e506cfce4b14fdcc
2018-12-27 12:26:30 -08:00
Yi Kong
fae5dac8fd Move -Wno-null-dereference to external only
Test: m checkbuild
Bug: 29823425
Change-Id: Icd675e451b2a2a8e3f489706e533f92d991de9c0
2018-12-21 14:51:41 -08:00
Jiyong Park
980f53d05e Fix: static dependency across an APEX is lost am: 16e91a067d
am: 53cfd00417

Change-Id: I3bf3c9e2c790de063c8670f55482088c55a9f0f4
2018-12-21 12:56:47 -08:00
Jiyong Park
53cfd00417 Fix: static dependency across an APEX is lost
am: 16e91a067d

Change-Id: I3686643a6606dda25dba39971198e43c6e638404
2018-12-21 12:52:45 -08:00
Jiyong Park
16e91a067d Fix: static dependency across an APEX is lost
This change fixes following problem:

1) a native lib having stubs is defined.
2) the lib is included in an APEX.
3) a static binary is linking the lib from outside of the APEX.
4) then, the dependency from the binary to the lib is vanishing.

This is happening because cc.depsToPaths() mistakely does not
distinguish static lib deps from shared lib deps. For shared lib deps,
it creates two dependencies (one for stubs variant and the other for
non-stubs variant) and choose the stubs variant when the lib and the
current module is not in the same APEX (i.e. dependency to the non-stubs
variant is discarded). However, since we don't have stubs variant for
static library, it ends up having no dependency to the library if the
link is static.

Fixing the issue by skipping the variant selection routine when the link
is static.

Test: m (apex_test added)
Test: build with https://android-review.googlesource.com/c/platform/bionic/+/849044
Change-Id: I21102a31cc5c0b105da2affdd035bd5cc571a6ab
2018-12-21 18:01:39 +09:00
Jiyong Park
23e17e4406 Add use_vendor to APEX module am: da6eb592bf
am: d3447f29f2

Change-Id: Ic01572a209a75e03356027f6fee058c68e714f73
2018-12-20 22:49:44 -08:00
Jiyong Park
d3447f29f2 Add use_vendor to APEX module
am: da6eb592bf

Change-Id: I7e5f7a24d6058e7a0fef0f9907e5f0da9e3e2a56
2018-12-20 22:45:38 -08:00
Jiyong Park
da6eb592bf Add use_vendor to APEX module
use_vendor, when set to true, brings vendor variant of the native
libraries and binaries to the APEX.

Bug: 115707625
Test: m (apex_test updated)
Change-Id: Ib4e996f8652f4ce4645a9c22f6914e2ab35edda6
2018-12-20 14:33:02 +09:00
Jaewoong Jung
c8d9f14958 Merge "Ignore shared libs for static executables." am: 3a0989ce4c
am: 23dbe700a4

Change-Id: I24a0ba472a8af71faf729b4967dbfdff15f70e97
2018-12-19 08:32:07 -08:00
Jaewoong Jung
23dbe700a4 Merge "Ignore shared libs for static executables."
am: 3a0989ce4c

Change-Id: I338b355c60ec18558d5002c0c70ae85f7b89713e
2018-12-19 08:26:56 -08:00
Jaewoong Jung
3a0989ce4c Merge "Ignore shared libs for static executables." 2018-12-19 16:16:24 +00:00
Sundong Ahn
1a5a13465c Merge "Add dependency for sysprop" am: 6ebbf3da29
am: 32f04e838b

Change-Id: Ie11cc8568d604481732dc25c1b7db65949b16808
2018-12-19 03:38:44 -08:00
Sundong Ahn
32f04e838b Merge "Add dependency for sysprop"
am: 6ebbf3da29

Change-Id: Icd09bef563aa335a36327c6e0e252667ac3f5371
2018-12-19 03:29:43 -08:00
Jiyong Park
184cf73914 Merge changes Idb2b552b,I190bca35 am: 8cc51b5620
am: e3c89e73b7

Change-Id: Ia71c4b780b690c810461295c0d1b5adeefbf853c
2018-12-19 00:38:16 -08:00
Evgenii Stepanov
cff8c6cd03 Merge "[hwasan] Reduce history size to save memory." am: 3181721a1e
am: 8801703a91

Change-Id: I27705b2f968660d117c1870f9c4b3aa28c319e6e
2018-12-19 00:35:13 -08:00
Jiyong Park
e3c89e73b7 Merge changes Idb2b552b,I190bca35
am: 8cc51b5620

Change-Id: I045c83d128ed0efbd477cd3a43e80c9bbbc46a09
2018-12-19 00:22:36 -08:00
Evgenii Stepanov
8801703a91 Merge "[hwasan] Reduce history size to save memory."
am: 3181721a1e

Change-Id: Iae83ccfc53a363d45ad4793c3f9d17c697f52a74
2018-12-19 00:19:40 -08:00
Sundong Ahn
5b73f31c80 Add dependency for sysprop
The dependency is added because the module that uses the sysprop library
needs generated code before it is built.

Test: m -j
Change-Id: I2858fc6fa6f2fe16afa2f4a7ae62746ba0f67e5c
2018-12-19 07:23:08 +00:00
Treehugger Robot
8cc51b5620 Merge changes Idb2b552b,I190bca35
* changes:
  When a stub is built for APEX, it is generated with --apex
  APEX-specific symbols can be tagged as # apex
2018-12-19 06:28:23 +00:00
Evgenii Stepanov
3c5a52a477 [hwasan] Reduce history size to save memory.
Bug: 112437883
Test: adb shell echo $HWASAN_OPTIONS
Change-Id: Ifc4ab10e37efb1a0ce7ea77ad691947d24c2da2b
2018-12-18 17:02:44 -08:00
Jaewoong Jung
232c07c217 Ignore shared libs for static executables.
Ie42edc5184f315f998db953594e425214b810e0e added system_shared_libs to
static libraries so that their exported headers can be referenced.
However, it also added unrequired dependencies, which is an
error-triggering issue for static executables.

This change addresses it by adding a condition to shared libs handling code
in binary.go.

Bug: 121152570
Test: cc_test.go, library_test.go
Change-Id: I1828442c4e496f8d815fccaeca970cd5766bdf5d
2018-12-18 15:56:59 -08:00
Jiyong Park
098ab903b1 Remove -include <file> when compiling stubs. am: 6437995170
am: b24226fdcc

Change-Id: Ie286839df36ba9bd7bf439e233c888d3c1a715cf
2018-12-15 09:18:06 -08:00
Jiyong Park
b24226fdcc Remove -include <file> when compiling stubs.
am: 6437995170

Change-Id: I9a6d6b7b2d6498c404104d6b731b9a20b2913464
2018-12-15 09:14:05 -08:00
Jiyong Park
3fd0baf651 When a stub is built for APEX, it is generated with --apex
Now, symbols that are only to be visible to across APEXes can be tagged
as # vndk. Then when generating the stubs library, the tagged symbol
is included. The symbol is NOT included in other cases; build NDK stubs,
etc.

Bug: 120638081
Test: m (apex_test updated.)
Change-Id: Idb2b552badddfc26af113cc8d4b984788f478813
2018-12-16 02:13:14 +09:00
Jiyong Park
bb4e13536e APEX-specific symbols can be tagged as # apex
If a symbol is tagged as # apex, then it is exported when gen_stub_libs
is invoked with --apex.

Bug: 120638081
Test: python3 cc/test_gen_stub_libs.py

Change-Id: I190bca35d1a4fb422b37d1be41a34de1ad64de6b
2018-12-16 02:12:13 +09:00
Jiyong Park
d0c11753f6 Merge changes I350fe490,I31e61862,I09b78e38 am: 1ee00b54d9
am: 04f6a9db21

Change-Id: I6ba60b168f05f53d1e368229ab2ce2b1d2b9bf87
2018-12-15 06:04:15 -08:00
Jiyong Park
6437995170 Remove -include <file> when compiling stubs.
Otherwise, the force included headers might cause conflicting types
error with the symbols in the generated stubs source code. e.g.

double acos(double); // in header
void acos() {} // in the generated source code

Bug: 120266448
Test: m (apex_test also updated, and passing)
Change-Id: I717df990959d1b24ec515f0f52a4e28b94e92f32
2018-12-15 23:03:47 +09:00
Jiyong Park
04f6a9db21 Merge changes I350fe490,I31e61862,I09b78e38
am: 1ee00b54d9

Change-Id: I2ea8c8333ecd2d48111131b6236d3005cb6f9075
2018-12-15 05:59:22 -08:00
Treehugger Robot
1ee00b54d9 Merge changes I350fe490,I31e61862,I09b78e38
* changes:
  Stubs libs are available for host
  Don't create unnecessary APEX variations
  Stubs dependency is not installed
2018-12-15 13:47:59 +00:00
Yi Kong
393bbbfe66 Merge "Move -Wno-null-pointer-arithmetic to external only" am: df76efe524
am: 3b47a3bd02

Change-Id: Id9623315759a50ee0480c10aebfa560cee47a7a1
2018-12-14 16:57:06 -08:00
Yi Kong
3b47a3bd02 Merge "Move -Wno-null-pointer-arithmetic to external only"
am: df76efe524

Change-Id: I71ba1b6dbd242eaf7614750076b565419ca8dae6
2018-12-14 16:44:58 -08:00
Yi Kong
c9f6db50d3 Move -Wno-null-pointer-arithmetic to external only
Test: m checkbuild
Bug: 72331524
Change-Id: I9c49a8cef547f6c840001fd203a0abecaeef44d5
Merged-In: I9c49a8cef547f6c840001fd203a0abecaeef44d5
(cherry picked from commit 3e88cb0399)
2018-12-13 18:36:19 -08:00
Ivan Lozano
c5c4a3adec Merge "Add option to avoid recovering with diagnostics." am: e98d11f733
am: e9c8b727e3

Change-Id: I981ed804967b1378821431d93efdd3f917cf32c7
2018-12-13 15:33:22 -08:00
Ivan Lozano
e9c8b727e3 Merge "Add option to avoid recovering with diagnostics."
am: e98d11f733

Change-Id: I25dc9e445265751e20e9da805fbb2905090e3efd
2018-12-13 14:53:26 -08:00
Ivan Lozano
e98d11f733 Merge "Add option to avoid recovering with diagnostics." 2018-12-13 20:56:18 +00:00
Jiyong Park
0fefdeac91 Stubs libs are available for host
The runtime APEX is built for host as well as for target. Therefore
stubs libs should be available also for host.

Bug: 120670568
Test: follow the repro step shown in b/120670568#comment4
Change-Id: I350fe490848ae9ceb55aade0521bdfaf48ed083f
2018-12-13 12:01:31 +09:00
Jiyong Park
0ddfcd1188 Don't create unnecessary APEX variations
This change fixes a problem that APEX variations are created for the
modules that actually shouldn't built for any APEX. For example,
consider this case.

apex { name: "myapex", native_shared_libs: ["mylib"],}

cc_library { name: "mylib", shared_libs: ["libfoo#10"],}
cc_library { name: "libfoo",
             shared_libs: ["libbar"],
             stubs: { versions: ["10"], }, }
cc_library { name: "libbar", ...}

Before this change, both the stubs and non-stubs variations of libfoo
were mutated with apexMuator, which is incorrect for the non-stubs
varia; there is no dependency chain from the apex "myapex" to the
non-stubs variation, but to the stubs variation due to the #10 syntax.

This was happening becauses we used the name of the module to determine
whether it should be built for APEX or not. Both stubs and non-stubs
variations have the same module name "libfoo".

Fixing this issue by recording the list of APEX variations required
directly on the module. So, the stubs variation of libfoo has myapex in
its apex variations list, but the non-stubs variation doesn't, and thus
apexMutator does not pick up the non-stubs variation.

Test: m (apex_test updated and passing)
Test: cherry-pick ag/5747464 and m
Change-Id: I31e618626809a828a55fff513ef5f81f79637afa
2018-12-13 10:48:15 +09:00
Jiyong Park
de866cbe50 Stubs dependency is not installed
When the stubs variant of a library is dependend by a platform component
and the library is included in one or more APEX, the library is not
installed to the platform, because it is provided by APEX.

Bug: 120266448
Test: m
Test: add stubs: { versions: ["1"], }, to libnetd_resolv
then build netd. libnetd_resolv.so does not exist under /system.

Change-Id: I09b78e38df285033ef6e9c85f7ea4b0274e85070
2018-12-13 10:48:15 +09:00
Dongwon Kang
ca2ee9f499 Merge "Don't install stubs" am: f576fcd413
am: 32386a41e1

Change-Id: I068e1e6907070769dacd5a04f4d86a7a66fa01ce
2018-12-12 10:50:02 -08:00
Dongwon Kang
32386a41e1 Merge "Don't install stubs"
am: f576fcd413

Change-Id: I85557c7896c53cdaeee3df300e88cc02f84e6c2a
2018-12-12 10:40:53 -08:00
Dongwon Kang
f576fcd413 Merge "Don't install stubs" 2018-12-12 18:15:35 +00:00
Ivan Lozano
7929bba218 Add option to avoid recovering with diagnostics.
Add a no_recover option that allows specifying which sanitizers in
diagnostics modes shouldn't recover. This can help debugging as we test
enabling sanitizers in new libraries since it'll cause tombstones to be
generated along with the diagnostics information.

Bug: 80195448
Bug: 110791537
Test: Compiled test module with this flag, checked compiler command.
Test: Test module crashed, tombstone contained diagnostics information.
Change-Id: Ie938923ef95716c2d49d6cd719ee223ad62755c6
2018-12-12 10:01:16 -08:00
Jerome Gaillard
b49619f48c Merge "Upgrade Windows default build version from Vista to 7" am: ff42f04af8
am: 475b7d7fb7

Change-Id: Ibde618c5677e708944eae7b72f76c2db647582c7
2018-12-12 06:16:42 -08:00
Jerome Gaillard
475b7d7fb7 Merge "Upgrade Windows default build version from Vista to 7"
am: ff42f04af8

Change-Id: I5bbcb61e74a847918867a7b26f9fc295c387b99d
2018-12-12 06:11:39 -08:00
Jerome Gaillard
ff42f04af8 Merge "Upgrade Windows default build version from Vista to 7" 2018-12-12 13:59:56 +00:00
Yi Kong
127d96dd4f Merge "Remove unneeded -Wno-expansion-to-defined flag" am: e2025abe96
am: 353bdb292f

Change-Id: I80c01c4875530e7b93bc51b4af5b527f040f9ed0
2018-12-11 18:57:01 -08:00
Yi Kong
353bdb292f Merge "Remove unneeded -Wno-expansion-to-defined flag"
am: e2025abe96

Change-Id: If7726e9e4b70134c9551dd36d54bdd14baefcc2d
2018-12-11 18:51:52 -08:00
Yi Kong
e2025abe96 Merge "Remove unneeded -Wno-expansion-to-defined flag" 2018-12-12 02:27:48 +00:00
Jiyong Park
127d56580d Don't install stubs
Stubs libs are build-time only artifact. Can't be installed.

Test: OUT_DIR=out build/soong/scripts/build-ndk-prebuilts.sh
with https://android-review.googlesource.com/c/platform/frameworks/av/+/846770/7
and two more CLs in the same chain
Examine out/soong/build.ninja
Build rule for out/soong/target/product/generic_arm64/system/lib64/arm64/libmediandk.so
exist only once.

Change-Id: I58ff09ef3fbbdbd2d968aa21b87a493192d4216d
2018-12-12 10:41:55 +09:00
Chih-hung Hsieh
418ff7b331 Merge "Disable cert-dcl16-c clang-tidy check for mingw32." am: d340852732
am: baeab573a1

Change-Id: I8e17caa06e137f3d0179ea0ec0ab4bc84a7edfc5
2018-12-11 09:54:50 -08:00
Chih-hung Hsieh
baeab573a1 Merge "Disable cert-dcl16-c clang-tidy check for mingw32."
am: d340852732

Change-Id: I4ebd440971b10de101cbe8a1db8b088ff6e1ef82
2018-12-11 09:50:46 -08:00
Chih-hung Hsieh
d340852732 Merge "Disable cert-dcl16-c clang-tidy check for mingw32." 2018-12-11 17:41:38 +00:00
Jiyong Park
280d73aec0 Disable cfi and stl for stubs libraries am: 090d9df206
am: 84d1d27efe

Change-Id: I1d1da2c99dfe4b2fca9d2df23072c596113ee7cb
2018-12-11 09:26:35 -08:00
Jiyong Park
84d1d27efe Disable cfi and stl for stubs libraries
am: 090d9df206

Change-Id: Ifdf9fb0a066a8a9b320aaa6054e25b5d2327f997
2018-12-11 09:22:33 -08:00
Jiyong Park
090d9df206 Disable cfi and stl for stubs libraries
Stubs libs are not built with dependencies required for cfi and stl.
Also it does not make much sense to build stubs with cfi and stl because
the libs are not for runtime and there is no C++ symbols.

Test: cherry-pick ag/5747464 and m
Change-Id: I83d6d82513a77a6a8a345e7d12707940c2c906c7
2018-12-11 19:43:56 +09:00
Chih-Hung Hsieh
327b6f0c69 Disable cert-dcl16-c clang-tidy check for mingw32.
Bug: 120614316
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-*
Change-Id: Ibe46409543eaa4a7f3b710d9742b3252dc9ac7e8
2018-12-10 16:28:56 -08:00
Yi Kong
4603b9f411 Remove unneeded -Wno-expansion-to-defined flag
Test: m checkbuild
Bug: 29823425
Change-Id: I8c9c7cc92757af20d3a3bbcebeb6360d1df91530
2018-12-10 04:55:51 -08:00
Yi Kong
a62c5ac2f1 Remove unneeded -Wno-deprecated-register flag am: 02c0ad48ba
am: b8506d246e

Change-Id: I29f8ee1d895b078d2640fb7fb1603b301f8c0342
2018-12-08 20:54:36 -08:00
Yi Kong
b8506d246e Remove unneeded -Wno-deprecated-register flag
am: 02c0ad48ba

Change-Id: I129ebec38b7d8c99d72affb3ea0a97cfaaefd7e7
2018-12-08 20:50:34 -08:00
Yi Kong
02c0ad48ba Remove unneeded -Wno-deprecated-register flag
Test: m checkbuild
Change-Id: I030a66b8a484673caf3a96a844dc26954e08071a
2018-12-09 04:41:38 +00:00
Evgenii Stepanov
126da038e7 Merge "Disable hwasan frame descriptions." am: adeb54c811
am: aabc76c5eb

Change-Id: Id77bd7d258a77e8d3b25f2bf24e02de02421bf93
2018-12-08 18:06:59 -08:00
Evgenii Stepanov
aabc76c5eb Merge "Disable hwasan frame descriptions."
am: adeb54c811

Change-Id: I8fc3f24dcb501c5729a3be72412f7d3c3d53acc3
2018-12-08 18:01:52 -08:00
Treehugger Robot
adeb54c811 Merge "Disable hwasan frame descriptions." 2018-12-09 01:42:00 +00:00
Dan Albert
6319ca9b9d Merge "Add flag to disable source directory includes." am: 3adf8b05f5
am: 440be95512

Change-Id: I60cb5508b590ff9315d70606edc1908cdaedaf3e
2018-12-07 16:45:52 -08:00
Dan Albert
440be95512 Merge "Add flag to disable source directory includes."
am: 3adf8b05f5

Change-Id: I5b79bbc90bd889701e0f3f55dcc7be9df62dec17
2018-12-07 16:41:43 -08:00