Commit graph

6833 commits

Author SHA1 Message Date
Ivan Lozano
7476f9e866 Merge "Add minimal-runtime support for integer overflows." am: f7463f8dd2
am: 6f5690555e

Change-Id: I01755237517bd1c1a49672267ff80db1bce2b5ff
2018-03-08 20:45:14 +00:00
Ivan Lozano
6f5690555e Merge "Add minimal-runtime support for integer overflows."
am: f7463f8dd2

Change-Id: I8f7b2fcf3140ee16e9c047a59ea0efe47a9d564f
2018-03-08 20:39:48 +00:00
Ivan Lozano
f7463f8dd2 Merge "Add minimal-runtime support for integer overflows." 2018-03-08 20:12:10 +00:00
Stephen Hines
e477406b83 Switch back to clang-4639204. am: 5e33119d5e
am: eaf1bdb885

Change-Id: Ic1b02d387f9aabd98947154c881323fad800c4f8
2018-03-08 17:35:37 +00:00
Stephen Hines
eaf1bdb885 Switch back to clang-4639204.
am: 5e33119d5e

Change-Id: Ieb154b3944b7bab57461a14ee3a2f9e1e8470bd5
2018-03-08 17:29:35 +00:00
Stephen Hines
5e33119d5e Switch back to clang-4639204.
Bug: http://b/68397894
Test: build/run sailfish.
2018-03-08 01:28:34 -08:00
Stephen Hines
84a250b37d Revert "Switch to clang-4639204." am: a6d69b06f8
am: f2813cb6e7

Change-Id: If7e0ab54436ee5469c23936586d5b4a769520180
2018-03-08 07:02:23 +00:00
Stephen Hines
f2813cb6e7 Revert "Switch to clang-4639204."
am: a6d69b06f8

Change-Id: I5c42bae431cacdacb21dd8d6ed5e3f2b606cd5c4
2018-03-08 06:56:51 +00:00
Stephen Hines
a6d69b06f8 Revert "Switch to clang-4639204."
This reverts commit d4bc55624a.

Reason for revert: PGO + LTO is broken with the new toolchain.

Change-Id: I5b84d933746a8facd536167c2b040fb08302790b
2018-03-08 06:24:11 +00:00
Ivan Lozano
30c5db2f47 Add minimal-runtime support for integer overflows.
Adds Soong support for -fsanitze-minimal-runtime when using
the integer overflow sanitizers. This makes the crashes due to these
sanitizers less mysterious.

Bug: 64091660
Test: Compiled and checked the generated compiler commands
Test: Checked program that overflows for the abort reason

Change-Id: Ieeceaf6c35c8371592952d3b8b977aefc11601c5
2018-03-07 18:41:20 -08:00
Stephen Hines
2939920557 Switch to clang-4639204. am: d4bc55624a
am: eb52ecdc1e

Change-Id: Ie52953095354418dc0bbd19be8ce93be7b4d648d
2018-03-08 02:37:10 +00:00
Stephen Hines
eb52ecdc1e Switch to clang-4639204.
am: d4bc55624a

Change-Id: Ie13b96d29dd7073cad51f2ccfe7df04b34a19870
2018-03-08 02:32:07 +00:00
Stephen Hines
d4bc55624a Switch to clang-4639204.
Bug: http://b/68397894
Test: build/run sailfish.
Change-Id: I980cf8458651317b33197253d0b870e66e936d05
2018-03-07 15:36:24 -08:00
Jayant Chowdhary
4fd3abeeeb Merge "No abi diffing for vndk libraries which are not vendor available." into pi-dev
am: d34ca7f986  -s ours

Change-Id: Ifd5244047b89439879d88313d7a1f8305770d861
2018-03-07 21:33:29 +00:00
TreeHugger Robot
d34ca7f986 Merge "No abi diffing for vndk libraries which are not vendor available." into pi-dev 2018-03-07 21:23:10 +00:00
Jayant Chowdhary
bb0a8bd5ee No abi diffing for vndk libraries which are not vendor available.
Vendor binaries cannot directly link with vndk libraries which are not vendor
available. We don't need them to be abi stable.

Bug: 66301104

Test: cd external/cblas; touch src/cblas_cher.c; mm -j64 does not
      produce an lsdump for libblas, since it isn't vendor available,
      even though it is vndk_enabled: true.

Change-Id: Ib2e1eaa06c4dc2e05623bd7b9aa3a83010f76bd1
Merged-In: Ib2e1eaa06c4dc2e05623bd7b9aa3a83010f76bd1
(cherry picked from commit 22963cda0e)
2018-03-07 11:12:41 -08:00
Dan Willemsen
402cbff31e Merge "Handle Scanner errors in kati output filter" am: b1693d3bde
am: 5492ba26a9

Change-Id: Iadcc2a8d82c92542f7e408c70434240ed91143d2
2018-03-07 18:13:02 +00:00
Dan Willemsen
5492ba26a9 Merge "Handle Scanner errors in kati output filter"
am: b1693d3bde

Change-Id: I623130c6666b14341bc4fcb4f80a891ba141ce82
2018-03-07 18:00:59 +00:00
Treehugger Robot
b1693d3bde Merge "Handle Scanner errors in kati output filter" 2018-03-07 17:45:22 +00:00
Dan Willemsen
d9429e6ff2 Handle Scanner errors in kati output filter
If Kati ever wrote a line over 64k characters, the scanner in soong_ui
would error, and Kati would hang trying to write into the pipe. Now if
the Scanner errors out, fall back to copying directly from the pipe to
the output.

Test: Add $(warning $(shell find frameworks)), does not hang
Change-Id: I86412ad2f53f2fe3cbda901ee673abb904d56d3c
2018-03-06 22:08:27 -08:00
Jayant Chowdhary
12e0268322 Merge "No abi diffing for vndk libraries which are not vendor available." am: 72ce0643b0
am: 21e5d301a6

Change-Id: Ic964b825e407f4d4c3c8e4c393dd0ad5d281bbd6
2018-03-07 02:11:43 +00:00
Jayant Chowdhary
21e5d301a6 Merge "No abi diffing for vndk libraries which are not vendor available."
am: 72ce0643b0

Change-Id: Id066556134e7080ade3c59b286242ee82a86ad33
2018-03-07 02:03:10 +00:00
Treehugger Robot
72ce0643b0 Merge "No abi diffing for vndk libraries which are not vendor available." 2018-03-07 01:46:17 +00:00
Nan Zhang
c88d07b75a Merge "droiddoc supports no_framework_libs." am: 984285de31
am: 3e94af80a1

Change-Id: I5624a706fd917da83c9dc44f07ad41463d5c9c9d
2018-03-06 23:43:58 +00:00
Nan Zhang
3e94af80a1 Merge "droiddoc supports no_framework_libs."
am: 984285de31

Change-Id: Ia918ea0248f63643b51cc6398921d4cd544268fa
2018-03-06 23:39:08 +00:00
Colin Cross
3ae73c7ee6 Only add SDK file dependencies on device builds am: 300f038848
am: f9f641ec91

Change-Id: Id2102ac53c8f019b470174dd2dd3c2a2aed52b19
2018-03-06 23:38:51 +00:00
Colin Cross
f9f641ec91 Only add SDK file dependencies on device builds
am: 300f038848

Change-Id: I83b407f2a90a4bd41b54eb5091dc7a25f8f9e2cf
2018-03-06 23:33:54 +00:00
Treehugger Robot
984285de31 Merge "droiddoc supports no_framework_libs." 2018-03-06 23:10:22 +00:00
Jayant Chowdhary
22963cda0e No abi diffing for vndk libraries which are not vendor available.
Vendor binaries cannot directly link with vndk libraries which are not vendor
available. We don't need them to be abi stable.

Bug: 66301104

Test: cd external/cblas; touch src/cblas_cher.c; mm -j64 does not
      produce an lsdump for libblas, since it isn't vendor available,
      even though it is vndk_enabled: true.

Change-Id: Ib2e1eaa06c4dc2e05623bd7b9aa3a83010f76bd1
2018-03-06 15:01:27 -08:00
Colin Cross
300f038848 Only add SDK file dependencies on device builds
Dependencies on sdk_vcurrent, etc. should only be added to java
modules that are building for the device.

Test: aosp-build-tools build
Change-Id: I01abba94fed8b470085529092263f4634dec229c
2018-03-06 21:32:32 +00:00
Nan Zhang
e66c727392 droiddoc supports no_framework_libs.
follow: https://android-review.googlesource.com/c/platform/build/+/618046

Don't build agianst framwork libs when "no_framwork_libs" set to true.

Test: m -j
Bug: b/70351683
Change-Id: If6d37fac20c2b401aa30c31c14f1463300623a0e
2018-03-06 12:59:27 -08:00
Pirama Arumuga Nainar
540a0fcb2f Switch to clang-4630689
am: 28f56ee5d6  -s ours

Change-Id: Ice5125173dce026da1fa9b973944a8589c0e47a6
2018-03-06 19:35:50 +00:00
Przemyslaw Szczepaniak
fa77cf2373 Merge "Pass bootclasspath to kotlinc" am: fd4795f58c
am: ce7d3a068d

Change-Id: I317dfdc09ebf120da9d1ec5f9ae552d36927e714
2018-03-06 19:18:32 +00:00
Przemyslaw Szczepaniak
ce7d3a068d Merge "Pass bootclasspath to kotlinc"
am: fd4795f58c

Change-Id: I6be629b43b61fa0181c10ce39644aeb8eee4907a
2018-03-06 19:12:18 +00:00
Pirama Arumuga Nainar
28f56ee5d6 Switch to clang-4630689
Bug: http://b/73127367
Bug: http://b/68659946

These new prebuilts have fixes for the bugs mentioned above.

Test: Build and verify that issues in both bugs above are fixed.
Change-Id: I410a43b70920d509118f8e6fdb012ef6b078d657
Merged-In: I410a43b70920d509118f8e6fdb012ef6b078d657
(cherry picked from commit 4a825ee14a)
2018-03-06 16:45:36 +00:00
Przemyslaw Szczepaniak
fd4795f58c Merge "Pass bootclasspath to kotlinc" 2018-03-06 10:10:40 +00:00
Pirama Arumuga Nainar
0f10a9fc11 Merge "Switch to clang-4630689" am: f975865a12
am: 6ae7efd478

Change-Id: I05fbb8de14876a1f0cb09aa64f1f270b8334c9ce
2018-03-05 18:20:11 +00:00
Pirama Arumuga Nainar
6ae7efd478 Merge "Switch to clang-4630689"
am: f975865a12

Change-Id: I9733c5b3d29a7e7e46bca7c68b320dab4ed2a3b8
2018-03-05 18:13:07 +00:00
Pirama Arumuga Nainar
f975865a12 Merge "Switch to clang-4630689" 2018-03-05 17:57:38 +00:00
Przemyslaw Szczepaniak
e3d26bf978 Pass bootclasspath to kotlinc
Lack of bootclasspath causes lack of libcore classes when compiling
code that would run on a device.

Bug: 73281388
Test: make hidl-doc
Change-Id: I2172740c4e318a7e24d0a40d967ccc91b7226338
2018-03-05 16:06:42 +00:00
Colin Cross
d2fc244b06 Merge changes I6f7d40b7,I25654032 am: 83a495830b am: dfcdeec8b2
am: 4335ca3cd6

Change-Id: I9a9e3adfb61a27fc387f90bf56571ec5dbdf512d
2018-03-03 03:52:06 +00:00
Colin Cross
4335ca3cd6 Merge changes I6f7d40b7,I25654032 am: 83a495830b
am: dfcdeec8b2

Change-Id: Ida245504ae6e7074e800ce809fae12e1d6957ee3
2018-03-03 03:48:25 +00:00
Colin Cross
dfcdeec8b2 Merge changes I6f7d40b7,I25654032
am: 83a495830b

Change-Id: Ie7c908f45fcd7e9d8858e77035700d67cee009fe
2018-03-03 03:38:04 +00:00
Treehugger Robot
83a495830b Merge changes I6f7d40b7,I25654032
* changes:
  add a library to report build numbers without causing rebuilds
  Rewrite symbol_inject to be testable
2018-03-03 03:16:48 +00:00
Jayant Chowdhary
4c26b78183 Disable abi diffs for sanitized variants of modules. am: ea0a2e1928 am: 1ce7bf12b7
am: 2c3225a1ac

Change-Id: I157a6665d1799792472dcf184e125c256ab1fc5a
2018-03-03 03:03:24 +00:00
Jayant Chowdhary
2c3225a1ac Disable abi diffs for sanitized variants of modules. am: ea0a2e1928
am: 1ce7bf12b7

Change-Id: I8f1bb1d97dca7dce25c3fa39a1ba97ff2c86015b
2018-03-03 02:55:28 +00:00
Jayant Chowdhary
1ce7bf12b7 Disable abi diffs for sanitized variants of modules.
am: ea0a2e1928

Change-Id: I790236678fea78c379ab1d7c32e8a5ae2cd0446b
2018-03-03 02:48:21 +00:00
Colin Cross
86803cfe6e add a library to report build numbers without causing rebuilds
Allow native modules to specify use_version_lib, which will make
an android::build::GetBuildNumber() function available.  For host
builds, the function will return the build number at the time that
the module was linked.  For device modules it will return the
value of the ro.build.version.incremental property.

Bug: 71719137
Test: build_version_test
Test: m build_version_test && touch build/make/core/Makefile build/soong/cc/libbuildversion/tests/build_version_test.cpp && m build_version_test shows different build numbers for binary and library tests.
Change-Id: I6f7d40b7574bb8206866c4e39bad9c710c796e32
2018-03-02 16:55:51 -08:00
Colin Cross
8673b5b959 Rewrite symbol_inject to be testable
Parse the machine-specific symbol tables into a custom symbol table
object and use a single function to find the offset and size of the
symbol in the custom table.  Make the functions to convert a
machine-specific symbol table into the custom table also take mocks,
and provide functions to dump mocks from real files.  Add tests
that take the mocks and verify they produce the right offset and
size.

Test: cmd/symbol_inject/*_test.go
Change-Id: I25654032b5017dd13a9a1fe29f8b8826ce5bc82b
2018-03-02 16:47:13 -08:00
Jayant Chowdhary
ea0a2e1928 Disable abi diffs for sanitized variants of modules.
asan variants can sometimes have extra exported symbols (this is a vndk
extension violation). Since asan variants are only used for testing,
don't do abi diffs for them.

Bug: 66301104

Test: Without the change, libc++.so.lsdump exists for the asan variant;
      with the change, it does not.

Test: make -j64.

Change-Id: I61a4c7a3e9aa0028a54ad0ca8715e8c77aebad94
2018-03-02 22:13:15 +00:00