Commit Graph

3749 Commits

Author SHA1 Message Date
Colin Cross
e264f22bec Merge changes Ia77090da,I95a57f76
* changes:
  Fix data races in finder_test.go
  Optimize sanitizerRuntimeDepsMutator
2019-06-21 17:01:23 +00:00
Mitch Phillips
b822fa236e Merge "Remove experimental pass manager for fuzzer builds." am: c4be0815d8 am: 07c9775cef am: a87c8005b4
am: eb1a59d79d

Change-Id: I78143054ba6f2eb9476cda3e2871e851f9cfcafe
2019-06-20 18:44:38 -07:00
Mitch Phillips
a87c8005b4 Merge "Remove experimental pass manager for fuzzer builds." am: c4be0815d8
am: 07c9775cef

Change-Id: I333316ff6041b6139b86bed5469885b42b6be96d
2019-06-20 18:17:19 -07:00
Treehugger Robot
c4be0815d8 Merge "Remove experimental pass manager for fuzzer builds." 2019-06-21 00:51:26 +00:00
Dan Willemsen
14bdcb833e Merge "Use prebuilt m4 instead of system m4" am: d9cf7fc48e am: 809fb63cc1 am: 9178a6ccb7
am: a7fd6c46f3

Change-Id: I2561f368960b5e20e545429239210f9bcb289507
2019-06-20 17:30:52 -07:00
Dan Willemsen
9178a6ccb7 Merge "Use prebuilt m4 instead of system m4" am: d9cf7fc48e
am: 809fb63cc1

Change-Id: Icfc74137bafb6333538553d9bde9dc6f8e57a42d
2019-06-20 16:18:02 -07:00
Colin Cross
0b90833ea8 Optimize sanitizerRuntimeDepsMutator
sanitizerRuntimeDepsMutator only modifies the currently visited
module, it can visit modules in parallel.

Also, stop recursing into modules that are not static dependencies,
and stop recursing if the module already has all modifications that
the mutator could make.

Test: m checkbuild
Change-Id: I95a57f763a91940f1854ba3c587a2f70e8baba97
2019-06-20 15:23:41 -07:00
Dan Willemsen
c69d715d72 Use prebuilt m4 instead of system m4
Bug: 117561006
Test: treehugger
Change-Id: I588d867d95cc52963ce764018a9c09b26973c8c3
2019-06-19 12:50:32 -07:00
Nick Desaulniers
ec5da13293 Merge "Switch to clang-r353983d" am: 2deb017c04 am: f1b45a21a4 am: 8414bef84d
am: 2150ad1a26

Change-Id: I09a91d12386c4cc0989bce561b71553856bc3c37
2019-06-17 11:16:11 -07:00
Nick Desaulniers
8414bef84d Merge "Switch to clang-r353983d" am: 2deb017c04
am: f1b45a21a4

Change-Id: If3444510dbf9767c5c825a5414f0046f5c272449
2019-06-17 10:40:40 -07:00
Mitch Phillips
74384758a6 Remove experimental pass manager for fuzzer builds.
Sanitizer coverage is currently broken with the experimental pass
manager. See b/133876586 for more information. The patch is currently
being worked on upstream (https://reviews.llvm.org/D62888), but is not
ready yet. Hence, we disable it here (similar to the LTO bug).

Bug: 133876586
Test: Build anything with SANITIZE_TARGET='fuzzer', verify that it has
'sancov' symbols.

Change-Id: I4302a8cf05300015aaff137f40b61d5685dc3fea
2019-06-17 10:33:52 -07:00
Nick Desaulniers
2deb017c04 Merge "Switch to clang-r353983d" 2019-06-17 16:25:51 +00:00
Inseob Kim
9ba8cf25e8 Merge "sysprop_library: Rename system scope to public" am: b1856799b1 am: 653ac78cbc am: bd4435b2e0
am: 6e07c2efa3

Change-Id: I9392737896f69b5d6cdd232eb48786a341120e76
2019-06-15 23:37:52 -07:00
Inseob Kim
bd4435b2e0 Merge "sysprop_library: Rename system scope to public" am: b1856799b1
am: 653ac78cbc

Change-Id: I0938fb362e86739b9c7d870bcb514118dd8b23ea
2019-06-15 23:22:47 -07:00
Treehugger Robot
b1856799b1 Merge "sysprop_library: Rename system scope to public" 2019-06-16 06:08:14 +00:00
Evgenii Stepanov
e42ee9bd6e Disable new LLVM pass manager for HWASan. am: 1c69e83030 am: b85d386af5 am: d7344ad0ca
am: 4c16f6d176

Change-Id: I554e0a7b41d34e4c7155321b735d55ca644f098e
2019-06-15 14:27:05 -07:00
Evgenii Stepanov
d7344ad0ca Disable new LLVM pass manager for HWASan. am: 1c69e83030
am: b85d386af5

Change-Id: I443bdbf313216591841272cbe51491fd6bd51fbd
2019-06-15 14:13:04 -07:00
Evgenii Stepanov
1c69e83030 Disable new LLVM pass manager for HWASan.
Current Android toolchain does not support hwasan with new pm.

Bug: 135298400
Test: manual, inspect the binaries for calls to __hwasan_init
Change-Id: I126c59e6ecabc3a1699e1bf34c546568b6e8a21f
2019-06-14 18:39:59 -07:00
Nick Desaulniers
36a39c9852 Switch to clang-r353983d
Test: build+boot sargo, TreeHugger
Bug: 131714073
Change-Id: Ieec2500027a78b80147f86b2bdaeaedaa1c18360
2019-06-14 16:31:34 -07:00
Dan Shi
21d760b59d Merge "Support require_root in auto-gen test configs" am: 9314e1124b am: c22778c363 am: a2e7deb129
am: b6ee641c07

Change-Id: I0de09921867a1b20b780a30d5c7d973302ff55b5
2019-06-14 16:04:43 -07:00
Dan Shi
a2e7deb129 Merge "Support require_root in auto-gen test configs" am: 9314e1124b
am: c22778c363

Change-Id: Ie9c3248937ccce23a55a99d29e65a2e88aabd4d2
2019-06-14 15:45:20 -07:00
Dan Shi
9314e1124b Merge "Support require_root in auto-gen test configs" 2019-06-14 22:21:39 +00:00
Pirama Arumuga Nainar
1ae842790b Merge "Remove redundant -fexperimental-new-pass-manager" am: 50b382a9e3 am: bd6e734a8a am: fcd0182d26
am: 299c3b1897

Change-Id: I62d197127266851058c2a83cef5e46efde9f7b2a
2019-06-14 14:59:03 -07:00
Pirama Arumuga Nainar
fcd0182d26 Merge "Remove redundant -fexperimental-new-pass-manager" am: 50b382a9e3
am: bd6e734a8a

Change-Id: I01fa59cb0df22850d1d55dd7752bae936dd43acd
2019-06-14 14:41:06 -07:00
Pirama Arumuga Nainar
50b382a9e3 Merge "Remove redundant -fexperimental-new-pass-manager" 2019-06-14 21:02:45 +00:00
Dan Shi
37ee3b8f49 Support require_root in auto-gen test configs
require_root is added to allow auto-generated test config to include
RootTargetPreparer so the test runs with root permission.

Bug: 134509111
Test: add "require_root: true" to init_benchmarks and libpower_test
  build the modules, confirm the extra target preparer is added in the
  test configs.

Change-Id: Ia07503e338935d6aa92560e7cf7b18d2a4c51243
2019-06-14 11:10:13 -07:00
Pirama Arumuga Nainar
3a25405acc Remove redundant -fexperimental-new-pass-manager
This is now turned on by default (cc/config/clang.go).

Test: N/A
Change-Id: I61bcf2049448b4200ca303ebcad555cc24a43c18
2019-06-14 09:54:23 -07:00
Dan Willemsen
b8cf77dace Merge changes If25be604,I0a310229,I44155630 am: 42d33779cd am: f32716e448 am: ebb0478869
am: 1a91240865

Change-Id: I0db34f1c08e41397716c677080c1d870e1ded5a5
2019-06-14 02:01:44 -07:00
Dan Willemsen
ebb0478869 Merge changes If25be604,I0a310229,I44155630 am: 42d33779cd
am: f32716e448

Change-Id: I08a9a38e59896cbec930d6087f96eaa9b327d4cc
2019-06-14 01:29:49 -07:00
Treehugger Robot
42d33779cd Merge changes If25be604,I0a310229,I44155630
* changes:
  Add another jar used by kotlinc
  Actually depend on the headers from renderscript
  Fix a few missing dependencies in APEX building
2019-06-13 17:40:01 +00:00
Yi Kong
f67ec8f7fa Merge "Move darwin to llvm-ar" am: 4821597065 am: 5c54831a17 am: 6731da7fe2
am: 304c953490

Change-Id: I8188cb73df2063b07c374c16d55abe89e474f67b
2019-06-12 23:30:37 -07:00
Yi Kong
6731da7fe2 Merge "Move darwin to llvm-ar" am: 4821597065
am: 5c54831a17

Change-Id: Ib8e327b77ec1702de52d3faa1c5920c74630ba16
2019-06-12 23:20:20 -07:00
Dan Willemsen
b085b9b907 Actually depend on the headers from renderscript
Instead of having all the object compilations depend on a stamp file,
instead depend on the headers, which are already available in the build
graph.

This allows my RBE builds to just find the headers, instead of having to
walk the graph to find the other outputs.

Test: treehugger
Test: build a system image with RBE
Change-Id: I0a310229be26d7bd399e074a4350d5be038f8661
2019-06-13 05:21:37 +00:00
Yi Kong
823532df31 Move darwin to llvm-ar
Test: build
Bug: 71618641
Change-Id: Ib45963bc9e295afe39752a270f7b5a1197335c69
2019-06-12 19:16:25 -07:00
Colin Cross
771800ca82 Merge changes Ia17b2bcb,Ic71892c3,Id2b23b9e,I435ee7aa,I85112506, ... am: 72ea641dff am: 98a6f300fa am: 31de2eaf51
am: 96f886c906

Change-Id: I50756a32209fec2706e9115bfa7d28ac05af3185
2019-06-12 15:13:08 -07:00
Dan Willemsen
3313b8fc5f Merge "Convert cc aidl to rule builder" am: 733728b42c am: b29f7672a1 am: 3fea9cbe7f
am: 401858faa8

Change-Id: Ib8311e353842a68a815f79ec4b9bd488c6b29d78
2019-06-12 15:04:39 -07:00
Colin Cross
31de2eaf51 Merge changes Ia17b2bcb,Ic71892c3,Id2b23b9e,I435ee7aa,I85112506, ... am: 72ea641dff
am: 98a6f300fa

Change-Id: I84683c2204afb5792ec11e2c608dca288e9431ec
2019-06-12 13:52:07 -07:00
Dan Willemsen
3fea9cbe7f Merge "Convert cc aidl to rule builder" am: 733728b42c
am: b29f7672a1

Change-Id: I2c1e300e268467d1b91b4aa93ac3754d890bfcd0
2019-06-12 13:50:02 -07:00
Colin Cross
72ea641dff Merge changes Ia17b2bcb,Ic71892c3,Id2b23b9e,I435ee7aa,I85112506, ...
* changes:
  Consolidate *MutatorContext and ModuleContext into BaseModuleContext
  Add test for missing defaults modules with AllowMissingDependencies
  Capture missing dependency error rules
  Share buildDir for android/soong/android tests
  Reimplement AddMissingDependencies
  Add GenerateAndroidBuildActions to DefaultsModuleBase
2019-06-12 20:19:55 +00:00
Dan Willemsen
733728b42c Merge "Convert cc aidl to rule builder" 2019-06-12 20:08:46 +00:00
Jiyong Park
7999fbb7c0 Merge "Let genrule be mutatable by the apex mutator" am: 7b8afc798a am: 8e5d79cc67 am: 4852239e35
am: 880fa2a60c

Change-Id: I6fa772b291746376f9dc0f8ed2c68e541ecaccce
2019-06-12 12:08:58 -07:00
Jiyong Park
4852239e35 Merge "Let genrule be mutatable by the apex mutator" am: 7b8afc798a
am: 8e5d79cc67

Change-Id: I674e8eedc63b632e1c775b9f06deeb4388b893ae
2019-06-12 11:57:55 -07:00
Treehugger Robot
7b8afc798a Merge "Let genrule be mutatable by the apex mutator" 2019-06-12 18:39:28 +00:00
Jiyong Park
fc752ca1ac Let genrule be mutatable by the apex mutator
genrule modules were not mutated by the apex mutator. As a result, a
module that is mutated for an apex have depended on the genrule modules
host_bionic_linker_{asm|flags} that are not mutated for the APEX.

This in turn caused an inconsistency problem because the
host_bionic_linker_* genrules use the dynamic linker that isn't mutated
for APEX as an input, while the outputs of the genrules are used by
modules mutated for APEX. The inconsistency caused b/135008828.

Fixing this issue by correctly let genrule to be mutated by the apex
mutator.

Bug: 135008828
Test: checkout master-art-host
ALLOW_MISSING_DEPENDENCIES=true DIST_DIR=out/dist
./art/tools/dist_linux_bionic.sh -j50 showcommands
com.android.runtime.host
is passing

Change-Id: I92d90400c61d3951f6202d932832d0cb63c95a7d
2019-06-12 13:28:11 +09:00
Oliver Nguyen
62b094aec0 Merge "Package coverage files as a zip." am: 7268fd494d am: 85cefe661b am: f3906b64f6
am: 6cab6e6509

Change-Id: I8ddd558793964c09e99e6030f53b46e64dbe0e85
2019-06-11 19:41:02 -07:00
Oliver Nguyen
f3906b64f6 Merge "Package coverage files as a zip." am: 7268fd494d
am: 85cefe661b

Change-Id: I9937d797b9447e921c56dbf8c3b01c05f0514648
2019-06-11 19:28:00 -07:00
Treehugger Robot
7268fd494d Merge "Package coverage files as a zip." 2019-06-12 02:00:01 +00:00
Oliver Nguyen
c743414d42 Package coverage files as a zip.
Test: make NATIVE_COVERAGE=true COVERAGE_PATHS="*"
Change-Id: I955212a20ea19c854ebc88635252a1d174ea8f7f
2019-06-11 16:04:11 -07:00
Inseob Kim
5cefbd289d sysprop_library: Rename system scope to public
In the first design, public sysprops have been accessible from Java
modules linking against SDK. But SDK modules shouldn't do, because
sysprop_library isn't for the apps. This renames system to public, so
that only public(System till now) and internal scopes remain from now.

Bug: 131637873
Test: m && sysprop_test
Change-Id: I548007d4a6018922f98d3d13915cee1d66070086
2019-06-11 23:31:32 +09:00
Roland Levillain
29ecaa205c Merge "Have symlink_preferred_arch: true honor the stem property." am: d7607c1c99 am: 299abf19c3 am: bcb2d44966
am: 7034d84e33

Change-Id: Idc548c77e6262b115948209a9d2dfcac16e3d63c
2019-06-11 07:11:05 -07:00