Commit Graph

13029 Commits

Author SHA1 Message Date
Colin Cross f8c794f323 Merge "Restat clang linker outputs" am: 51e265c5dd am: 0a31c21da0
am: 50ec199881

Change-Id: Id3d9476d1e38f400012ef6ef90ae146be66ba7fa
2019-03-31 12:04:55 -07:00
Colin Cross 50ec199881 Merge "Restat clang linker outputs" am: 51e265c5dd
am: 0a31c21da0

Change-Id: I1673d9eba4399e26235b92b53f240d91842b1ee4
2019-03-31 11:59:51 -07:00
Colin Cross 0a31c21da0 Merge "Restat clang linker outputs"
am: 51e265c5dd

Change-Id: I7f95695550cc51a5043cecab62f7907dffe1ef82
2019-03-31 11:55:47 -07:00
Treehugger Robot 51e265c5dd Merge "Restat clang linker outputs" 2019-03-31 18:40:40 +00:00
Patrice Arruda 21cefd7e1a Merge "Soong: Add unbind option to setup_go_workspace_for_soong.sh script" am: 0ba2733414 am: 55e35c0d63
am: 61cd12b4be

Change-Id: I8ed630f07b6d304ee8b233711e92e7c102b26eb8
2019-03-30 17:19:15 -07:00
Jiyong Park 8129d15107 Merge "Arch-specific source for prebuilt_apex" am: 50ca4ef4d3 am: 8f3fdc9135
am: b7f7db364c

Change-Id: I42070d549fae379aaf7516ce2ab9854f47d7d3d8
2019-03-30 17:18:47 -07:00
Patrice Arruda 61cd12b4be Merge "Soong: Add unbind option to setup_go_workspace_for_soong.sh script" am: 0ba2733414
am: 55e35c0d63

Change-Id: I5b6ca789735e327cabe2bef4c5f6e5583fa418d5
2019-03-30 17:15:06 -07:00
Jiyong Park b7f7db364c Merge "Arch-specific source for prebuilt_apex" am: 50ca4ef4d3
am: 8f3fdc9135

Change-Id: Ia70f151b3003bbef83037179eded7a888bb487a3
2019-03-30 17:14:43 -07:00
Patrice Arruda 55e35c0d63 Merge "Soong: Add unbind option to setup_go_workspace_for_soong.sh script"
am: 0ba2733414

Change-Id: I29d01517b4886b8e0f17fc3a247ce6e8b6689ec9
2019-03-30 17:10:04 -07:00
Jiyong Park 8f3fdc9135 Merge "Arch-specific source for prebuilt_apex"
am: 50ca4ef4d3

Change-Id: I14895ea1d0ca47e1b7a82a741800cec7400d319e
2019-03-30 17:09:42 -07:00
Patrice Arruda 0ba2733414 Merge "Soong: Add unbind option to setup_go_workspace_for_soong.sh script" 2019-03-30 23:51:53 +00:00
Jiyong Park 50ca4ef4d3 Merge "Arch-specific source for prebuilt_apex" 2019-03-30 23:50:32 +00:00
Jiyong Park c95714ed0d Arch-specific source for prebuilt_apex
Arch-specific source can be specified for prebuilt_apex as follows.

arch: {
    arm64: {
        src: "myapex-arm64.apex",
    },
},

A note on the implementation. The Src property was not tagged as
`android:"arch_variant"` as usual. Instead, multiple Src properties are
explicitly declared like

struct Arch {
    struct Arm {
        struct Src *string
    }
    ...
}

Corresponding Src property is manually selected according to the
MultiTargets()[0].

This is because prebuilt_apex is mutated only for android_common, in
order to have the same arch variant with the apex module type.
Therefore, we can't rely on the arch_variant tag.

Bug: 127789981
Test: m (apex_test amended)

Change-Id: I77dbe626171d8975f549bdb4af3c487232cf05f7
2019-03-30 14:11:37 +09:00
Colin Cross 36ae135434 Restat clang linker outputs
clang -Wl,--out-implib doesn't update its output file if it hasn't
changed, always restat the outputs.

Fixes: 129553377
Test: m checkbuild && m checkbuild
Change-Id: I2cb19e1b8280fd69c8a9b2143f55760ec05630f8
2019-03-30 00:03:24 +00:00
Colin Cross 1d2cf0494a Add depfile support to RuleBuilder
Allow rules built with RuleBuilder to use depfiles.  Ninja only
supports a single depfile with single output.  If there are
multiple outputs in a rule, move all but the first to implicit
outputs.  If multiple depfiles are specified, use new support
in dep_fixer to combine additional depfiles into the first depfile.

Test: rule_builder_test.go
Change-Id: I7dd4ba7fdf9feaf89b3dd2b7abb0e79006e06018
2019-03-29 16:35:06 -07:00
Colin Cross 92b7d584c8 Add RuleBuilderCommand.Flags
Test: rule_builder_test.go
Change-Id: I7887a67aaef33bc591d83fade9175da3e401529f
2019-03-29 16:35:06 -07:00
Patrice Arruda b4e93fbdc2 Soong: Add unbind option to setup_go_workspace_for_soong.sh script
The setup_go_workspace_for_soong now allows the reverse operation
of unbinding the directories of the previous operation. Also,
refactored the script to easily add more directories to bind/unbind
in the future, catch failures on running in subshell commands and
a cleaner way to find the repo top directory.

Bug: b/129407866
Test: Manually tested by running the script on binding and unbinding
the directories. Tested both darwin and linux OS.

Change-Id: I7c93230aeab819ab5747e990e95aa26077071d9e
2019-03-29 15:57:47 -07:00
Andrei Onea 896237b7b9 Automatically greylist code in 3P packages
Bug: 129387816
Test: m appcompat
Test: frameworks/base/tools/hiddenapi/generate_hiddenapi_lists_test.py
Change-Id: Id55abed766a6de6a2c032ee12d5153ab73a8d65c
2019-03-29 16:51:43 +00:00
Pirama Arumuga Nainar 0727bda73d Include libprofile-extras to all coverage variants am: 65c95ff1fb am: 865ad54f90
am: ef7a035152

Change-Id: If8958a71e5110651c883eee91597251845a02be5
2019-03-29 09:31:40 -07:00
Pirama Arumuga Nainar 5f4da30d62 Refactor coverage support am: ee30d5e132 am: 312b5f4407
am: 2bccc05cbf

Change-Id: Ie2a491d4865015f7d3c062e0390a03de0ca14bc8
2019-03-29 09:31:24 -07:00
Pirama Arumuga Nainar ef7a035152 Include libprofile-extras to all coverage variants am: 65c95ff1fb
am: 865ad54f90

Change-Id: I4afb3bf93ebda7d25957b988bf627481ad7889ca
2019-03-29 09:22:33 -07:00
Pirama Arumuga Nainar 2bccc05cbf Refactor coverage support am: ee30d5e132
am: 312b5f4407

Change-Id: I0aaf75cf2d0701a8f490a2b2bd2bdb388add63c3
2019-03-29 09:22:21 -07:00
Pirama Arumuga Nainar 865ad54f90 Include libprofile-extras to all coverage variants
am: 65c95ff1fb

Change-Id: I74057c0921eaa76c8016d0bb8f81abaf0eb50ed8
2019-03-29 09:17:15 -07:00
Pirama Arumuga Nainar 312b5f4407 Refactor coverage support
am: ee30d5e132

Change-Id: I859c7e6c535f1d99d26fa8148bc24a930933cd39
2019-03-29 09:17:04 -07:00
Pirama Arumuga Nainar 65c95ff1fb Include libprofile-extras to all coverage variants
Bug: http://b/128524141

Include libprofile-extras (defined in system/extras/toolchain-extras) to
all modules that need a coverage variant.  Also add
'-uinit_profile_extras' when linking with coverage.  This causes the
setup code in libprofile-extras to be linked into binaries/libraries
with coverage enabled.

We add the static library to the non-coverage variants as well but is a
no-op for them (since the '-u...' flag is not added for them).

Adding this dependency creates several circular dependencies since
coverage variants were being created for other module types that never
had any compilation or linking done during the build.  This change stops
creating coverage variants for toolchain_library, cc_prebuilt_library_*,
cc_library_headers module types (by adding a function to the linker
interface to specify whether native coverage is enabled).

Test: m NATIVE_COVERAGE=true COVERAGE_PATHS=*
Test: blueline_coverage target in internal branch (using forrest)
Change-Id: I5db876eb953639a55ba007248dd24e497f987730
2019-03-29 08:56:42 -07:00
Pirama Arumuga Nainar ee30d5e132 Refactor coverage support
Bug: http://b/128524141

The goal is to add a static library (libprofile-extras) to modules that
require coverage.  Since the coverageMutator is a post-deps mutator, the
results of the coverageMutator are not available when the dependencies
get constructed in deps().  This change moves the detection from the
coverageMutator to begin().

Test: m NATIVE_COVERAGE=true COVERAGE_PATHS=*
Test: blueline_coverage target in internal branch (using forrest)

Change-Id: I4e7c8b31ed5060642c6218ea33c532a0f6619967
2019-03-29 08:56:42 -07:00
Patrice Arruda a5d59cce58 Merge "Soong: Add synopsis to cc_library_* modules" am: bcf9408e44 am: 3a537940a7
am: 64c7368b39

Change-Id: I6f1db1d06a91ed7ec181ef9aa44f031affe8cc46
2019-03-29 08:50:13 -07:00
Patrice Arruda 64c7368b39 Merge "Soong: Add synopsis to cc_library_* modules" am: bcf9408e44
am: 3a537940a7

Change-Id: I4827491b28f6501a1c72eb578f4b15a29761dee0
2019-03-29 08:36:02 -07:00
Patrice Arruda 3a537940a7 Merge "Soong: Add synopsis to cc_library_* modules"
am: bcf9408e44

Change-Id: Ifb84210b4c15c1b3aef011677e4938cbbd200f9b
2019-03-29 08:32:03 -07:00
Patrice Arruda bcf9408e44 Merge "Soong: Add synopsis to cc_library_* modules" 2019-03-29 15:21:21 +00:00
Jaewoong Jung 4bc3a00349 Merge "Add prebuilt_apex." am: 083bd3e971 am: 14acd15640
am: 3cdc5b69a4

Change-Id: Ie43668acd32e52cdb2391f5c9d9798859a6aa885
2019-03-29 00:59:39 -07:00
Jaewoong Jung 3cdc5b69a4 Merge "Add prebuilt_apex." am: 083bd3e971
am: 14acd15640

Change-Id: Iadaa98990f2410adec18d8246f4b9e380dcced94
2019-03-29 00:55:35 -07:00
Jaewoong Jung 14acd15640 Merge "Add prebuilt_apex."
am: 083bd3e971

Change-Id: Ibee60218605b28e90225b3470828b75530063ad4
2019-03-29 00:51:34 -07:00
Treehugger Robot 083bd3e971 Merge "Add prebuilt_apex." 2019-03-29 07:36:53 +00:00
Bill Rassieur 27d35885df Merge master@5406228 into git_qt-dev-plus-aosp.
Change-Id: I28b591a5816adbefb89d2617e74f0aac5156325b
BUG: 129345239
2019-03-29 04:13:31 +00:00
Yi Kong ee2a987501 Merge "Move -Wno-inconsistent-missing-override to ClangExtraCflags" am: 2e03bb7296 am: 16bb6c063d
am: b82e51d36e

Change-Id: I5d528f6121701394ff26a7cd040a6ea40bc94106
2019-03-28 16:05:29 -07:00
Jaewoong Jung 939ebd5f33 Add prebuilt_apex.
Bug: 127789981
Test: apex_test.go + com.android.tzdata.apex
Change-Id: I09bb0a4b2acf310c55c789569da3c9d755638232
2019-03-28 15:56:22 -07:00
Yi Kong b82e51d36e Merge "Move -Wno-inconsistent-missing-override to ClangExtraCflags" am: 2e03bb7296
am: 16bb6c063d

Change-Id: I857212fc41601d918f57809eb2855316c8a8d640
2019-03-28 15:53:18 -07:00
Yi Kong 16bb6c063d Merge "Move -Wno-inconsistent-missing-override to ClangExtraCflags"
am: 2e03bb7296

Change-Id: I293a0167fcbdb240b31a9a53d9cc29c8acc20cf5
2019-03-28 15:49:14 -07:00
Yi Kong 2e03bb7296 Merge "Move -Wno-inconsistent-missing-override to ClangExtraCflags" 2019-03-28 22:37:47 +00:00
Patrice Arruda 83c89e0f4e Soong: Add synopsis to cc_library_* modules
Added synopsis to the following modules under cc package:
   * cc_library_static
   * cc_library_shared
   * cc_library
   * cc_library_host_static
   * cc_library_host_shared
   * cc_library_headers

Bug: b/128337482
Test: Generated the documentation and verified that the synopsis was
added to each of the module.

Change-Id: I4d9bb622dc75aad9ea1b9f331c80ed56ddbc9a15
2019-03-28 10:36:26 -07:00
Inseob Kim 64d8e8bbce Merge "Remove libbase dependency of sysprop_library" am: 9e50e6955f am: 93079643a1
am: 918b8ed0b2

Change-Id: If5d70d42b9fe1c320e22950ff98892b6a233b653
2019-03-27 20:19:38 -07:00
Inseob Kim 918b8ed0b2 Merge "Remove libbase dependency of sysprop_library" am: 9e50e6955f
am: 93079643a1

Change-Id: I07b2ba9f2e7f1ba12ffefe3637fa5d59b06e7ef6
2019-03-27 20:15:34 -07:00
Inseob Kim 93079643a1 Merge "Remove libbase dependency of sysprop_library"
am: 9e50e6955f

Change-Id: I32144aef537c89ff0a623cb4e3ceaf8acff12b4d
2019-03-27 20:11:29 -07:00
Treehugger Robot 9e50e6955f Merge "Remove libbase dependency of sysprop_library" 2019-03-28 03:01:27 +00:00
Yi Kong 4d048d5972 Move -Wno-inconsistent-missing-override to ClangExtraCflags
So that projects can override the flag through cflag (CPPFlags are
appended after CFlags).

Test: m checkbuild
Change-Id: Ib72f4ed4731f41982a0eb8a90c782c09810aa8c9
2019-03-27 18:26:22 -07:00
Jaewoong Jung a4edf844da Merge "Fix an override_module bug." am: 044ead6b1a am: 5ce95f2eaf
am: ac24969630

Change-Id: I352a380486600c0b48a61daa0457eff09ceb8f66
2019-03-27 16:13:22 -07:00
Jaewoong Jung ac24969630 Merge "Fix an override_module bug." am: 044ead6b1a
am: 5ce95f2eaf

Change-Id: Ica18abbc0619eafe5a9fe7198b47c630121ca9e0
2019-03-27 16:09:21 -07:00
Yi Kong 1093f63255 Merge "Turn on new pass manager for PGO projects" am: edd7fdd891 am: 2692cfac0d
am: b979eb5bb2

Change-Id: Iff3236a595f2542b7e4c341304ff632befa78d44
2019-03-27 16:05:47 -07:00
Patrice Arruda 2903c0d370 Merge "Soong: Add synopsis to cc_object module." am: 5c45f684dd am: 3f056b869d
am: aeca13f9ab

Change-Id: Iddcf698d10683e41dc9336f91d6e5bc3d531d743
2019-03-27 16:05:18 -07:00