Florian Mayer
7c02c0883a
Use new pass manager for HWASan builds.
...
Now that we have rolled to a sufficiently new clang, HWASan also works
with the new pass manager.
Bug: 135298400
Test: introduce memory safety bug and verify HWASan gets triggered.
Change-Id: I497ca6542971569cbcad949780e4c7df5b0bfb44
2021-08-20 10:07:20 +01:00
Treehugger Robot
babe69a610
Merge "Revert "Revert "Apply pylint to cc/symbolfile""" am: 99d5a0f5c9
am: bc3bbf81bc
am: afa8400906
am: f6cda86915
am: 13329482cf
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1802996
Change-Id: Ice8343eb39b2f90d3e7b3e511be32ef75def8f1b
2021-08-19 22:05:30 +00:00
Treehugger Robot
bc3bbf81bc
Merge "Revert "Revert "Apply pylint to cc/symbolfile""" am: 99d5a0f5c9
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1802996
Change-Id: Iadfdedc4664a3e8717d29ddaa143acf8c71c18e6
2021-08-19 21:07:14 +00:00
Treehugger Robot
99d5a0f5c9
Merge "Revert "Revert "Apply pylint to cc/symbolfile"""
2021-08-19 20:51:40 +00:00
Spandan Das
3f5659f268
Revert "Revert "Apply pylint to cc/symbolfile""
...
This reverts commit ea28f4cae7
.
Reason for revert: Postsubmit failure was unrelated, and was fixed by this revert CL aosp/1802327
Change-Id: I2693b17c2261cfc3dce0ed69baeb2d1f45f784f8
2021-08-19 19:31:54 +00:00
Treehugger Robot
2256e7ad00
Merge "Revert "Apply pylint to cc/symbolfile"" am: 9ab1e685ee
am: 242d45b1fa
am: 6acdef085e
am: fa692af714
am: 3d05e54f10
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1801789
Change-Id: I8a8216669e9e72e6b42bbcada8660199369b5f01
2021-08-19 12:41:11 +00:00
Treehugger Robot
242d45b1fa
Merge "Revert "Apply pylint to cc/symbolfile"" am: 9ab1e685ee
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1801789
Change-Id: I5d42a63f1af53a7c08691fd8361cb171b32d5ad9
2021-08-19 11:54:58 +00:00
Treehugger Robot
9ab1e685ee
Merge "Revert "Apply pylint to cc/symbolfile""
2021-08-19 11:43:17 +00:00
Junwei Wang
ea28f4cae7
Revert "Apply pylint to cc/symbolfile"
...
This reverts commit 73de70264a
.
Reason for revert: Broken build 7651218 on aosp-master on aosp_x86_64-userdebug -- b/197190129
Change-Id: I18387e5d2765fecb292127d09e3bbe7cf19b5efd
2021-08-19 08:10:05 +00:00
Treehugger Robot
19da026bc0
Merge "Collect info on non-cc sources in a cc module." am: 4132ef45bb
am: f82cdf018f
am: c164af2205
am: 4aa01fb1c7
am: 0bede5a24e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1798371
Change-Id: I0d56d852b780910749c70e413fbe240962001798
2021-08-19 07:04:42 +00:00
Treehugger Robot
f82cdf018f
Merge "Collect info on non-cc sources in a cc module." am: 4132ef45bb
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1798371
Change-Id: I5195d3f4e0af043048f7570b69d9000d8775f947
2021-08-19 06:07:29 +00:00
Treehugger Robot
4132ef45bb
Merge "Collect info on non-cc sources in a cc module."
2021-08-19 05:55:43 +00:00
Matthew Maurer
5ea98931e0
Merge changes I9682b978,I35465715,I9c5aa5f3,I1c76e620 am: a8b1ab0370
am: 1678ccaeaa
am: faa3f8d0e6
am: 6f16bf8212
am: 8c765d7c12
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1774010
Change-Id: Ieba0ed68d0d8d07d987b5983e6797cfa2a2e9bdf
2021-08-19 04:13:59 +00:00
Matthew Maurer
1678ccaeaa
Merge changes I9682b978,I35465715,I9c5aa5f3,I1c76e620 am: a8b1ab0370
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1774010
Change-Id: I7d46bcfc463f859f6c44d6fae95abf6792aba15c
2021-08-19 03:13:16 +00:00
Matthew Maurer
a8b1ab0370
Merge changes I9682b978,I35465715,I9c5aa5f3,I1c76e620
...
* changes:
Support Rust in Ramdisk
Support Rust in native-bridge
Support Rust in Product
Support Rust in Recovery
2021-08-19 02:55:46 +00:00
Liz Kammer
b3d37ab653
Merge "Don't create a new module for bp2build conversion." am: 380dbb9327
am: 680bd2dd0a
am: 429f29b360
am: d97dfbe9e6
am: 1637e4345f
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1792714
Change-Id: If86018fe24efdb5bbe5cce50bc20b58e0f17ded6
2021-08-18 20:32:57 +00:00
Liz Kammer
680bd2dd0a
Merge "Don't create a new module for bp2build conversion." am: 380dbb9327
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1792714
Change-Id: Ie7d6d5908d06f14121691f7aa0f57c7c7303e67a
2021-08-18 19:44:01 +00:00
Liz Kammer
380dbb9327
Merge "Don't create a new module for bp2build conversion."
2021-08-18 19:28:20 +00:00
Liz Kammer
46c7655770
Merge "Handle arch-specific/not properties the same." am: 5641096e7f
am: ba85722ffa
am: c133bdc010
am: 8923a53284
am: 410cdd04a5
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1792708
Change-Id: Icd0f43e10ee98991749b62779e4a1629b941e2e1
2021-08-18 17:26:10 +00:00
Spandan Das
30eefd8b84
Apply pylint to build/soong/cc/ndk_api_coverage_parser
...
1. Run black --line-length 80 -S build/soong/cc/ndk_api_coverage_parser to
fix formatting
2. Annotate # pylint: disable=line-too-long for multi line strings in
test_ndk_api_coverage_parser.py
Test: pytest
build/soong/cc/ndk_api_coverage_parser/test_ndk_api_coverage_parser.py
Test: pylint --rcfile tools/repohooks/tools/pylintrc
build/soong/cc/ndk_api_coverage_parser
Bug: 195738175
Change-Id: Ifb6d4cd67399eb3fa201185c5d1ebc2544fa316f
2021-08-18 17:17:47 +00:00
Jay Patel
739efe124d
Merge "Allow PRODUCT_CFI_INCLUDE_PATHS to work with blueprints also" am: eaf5e1b3ec
am: 761bbc16da
am: 917cddf182
am: 8e6deb3db1
am: 04d57c418a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1746893
Change-Id: If4f08b26fc87c3ae8e8c3cdc1f5637f5ca42aa12
2021-08-18 16:30:59 +00:00
Liz Kammer
ba85722ffa
Merge "Handle arch-specific/not properties the same." am: 5641096e7f
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1792708
Change-Id: Id7960374816f1c7198e3c4b1dbb919ad66a7ff45
2021-08-18 16:16:29 +00:00
Liz Kammer
5641096e7f
Merge "Handle arch-specific/not properties the same."
2021-08-18 15:59:49 +00:00
Jay Patel
761bbc16da
Merge "Allow PRODUCT_CFI_INCLUDE_PATHS to work with blueprints also" am: eaf5e1b3ec
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1746893
Change-Id: I8995c7a7004b904c9b944bcc384550a76c406702
2021-08-18 15:32:39 +00:00
Jay Patel
eaf5e1b3ec
Merge "Allow PRODUCT_CFI_INCLUDE_PATHS to work with blueprints also"
2021-08-18 15:18:41 +00:00
Treehugger Robot
d77669354c
Merge "Apply pylint to cc/symbolfile" am: 68a240badb
am: d44adf7ff7
am: b2c1e32fea
am: 2e53b7bc9f
am: 16e5e18719
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1797009
Change-Id: Ibaeacd642f15f24dcc0a7d0ee9d6e05ba46bf383
2021-08-18 00:47:11 +00:00
Treehugger Robot
d44adf7ff7
Merge "Apply pylint to cc/symbolfile" am: 68a240badb
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1797009
Change-Id: I99f9dc6de576e7c966e6096033e8f232ebe3fa21
2021-08-17 23:04:18 +00:00
Treehugger Robot
68a240badb
Merge "Apply pylint to cc/symbolfile"
2021-08-17 22:44:37 +00:00
Matthew Maurer
c6868383f4
Support Rust in Ramdisk
...
Bug: 178565008
Bug: 165791368
Test: Build and link a Rust library into a ramdisk binary
Change-Id: I9682b978936624133e5a62e94caace0e8958fd0f
2021-08-17 15:08:49 -07:00
Matthew Maurer
a61e31f66a
Support Rust in native-bridge
...
Bug: 178565008
Bug: 165791368
Test: Build and link a Rust library into a native-bridge binary
Change-Id: I3546571530529203d9dbfd62777f20de18c6bd51
2021-08-17 15:08:49 -07:00
Matthew Maurer
52af5b052b
Support Rust in Product
...
Bug: 178565008
Bug: 165791368
Test: Build and link a Rust library into a product binary
Change-Id: I9c5aa5f3a1f323af9aa2aee804635045f1b91bd4
2021-08-17 15:08:49 -07:00
Matthew Maurer
460ee9429e
Support Rust in Recovery
...
Bug: 178565008
Bug: 165791368
Test: Build and link a Rust library into a recovery binary
Change-Id: I1c76e6204019443c567082730a4cf680f4a2a74a
2021-08-17 15:08:49 -07:00
Liz Kammer
74ec1686aa
Collect info on non-cc sources in a cc module.
...
Cc modules in Soong can contain non-cc srcs, collect information on
whether they exist in a module. This is not entirely precise as globs
are not evaluated and srcs from other modules (e.g. filegroups,
generated sources) are not handled; however, it should give a decent
lower bound on how often each type occurs.
Bug: 194938896
Test: SOONG_DUMP_JSON_MODULE_GRAPH=/tmp/json_srcs m nothing and verify
outputs
Change-Id: I7ad52e863727cf5fa4e8d41cf04d27c86e395c6d
2021-08-17 17:29:51 -04:00
Liz Kammer
2ada09a546
Don't create a new module for bp2build conversion.
...
A performance improvement for bp2build as Blueprint/Soong no longer have
the overhead of additional modules. The creation of these modules
results in:
* traversal of additional modules for each subsequent mutator
* synchronization over a go channel to collect newly created modules:
https://cs.android.com/android/platform/superproject/+/master:build/blueprint/context.go;l=2594,2600;drc=1602226f23181b8c3fbfcaf3358f0297e839d7d3
We avoid both of these by storing the information directly in the
underlying module.
Also as a fringe benefit, removes some necessary boilerplate for
conversion.
For benchmarks, reduces runtime ~1% for 1% converted, ~24% for 100%
converted. See more: go/benchmarks-for-https:-r.android.com-1792714
Test: ran benchmarks/tests in bp2build
Test: build/bazel/ci/bp2build.sh
Change-Id: Ie9273b8cbab5bc6edac1728067ce184382feb211
2021-08-17 15:57:09 -04:00
Xin Li
8ded89b1bf
Merge "Merge sc-dev-plus-aosp-without-vendor@7634622" into stage-aosp-master
2021-08-17 18:14:22 +00:00
Liz Kammer
135bf55281
Handle arch-specific/not properties the same.
...
Refactor arch-handling code to return a "no-config" axis which allows
handling non-arch configed properties the same way as arch-configed
properties.
Test: build/bazel/ci/bp2build.sh
Change-Id: I485b35fd91c28501fe2055234dc9b278488bf4b5
2021-08-17 13:06:54 -04:00
Colin Cross
7e7b028b88
Set ANDROID_HOST_MUSL for musl builds
...
Unlike glibc, musl does not #define __MUSL__ on the assumption that
building against musl will be done using a configure script that should
be testing for individual features rather than assuming them based on
using musl. We don't use configure-based builds, so add a local
ANDROID_HOST_MUSL macro that will be defined for all host musl builds.
Bug: 190084016
Test: m USE_HOST_MUSL=true adb
Change-Id: I44e3ffd1d727fd0ea8b69c3b074fef7e92e2be41
2021-08-16 14:42:53 -07:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
04163deb9f
Merge "Expose Soong's default clang versions to Bazel" am: 37abc3c343
am: 645f09bea9
am: 089fd1f92b
am: d823c34d32
am: d80c240c93
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795147
Change-Id: I0d8928b4cb143b07dc380d0298baeadbc835b4fe
2021-08-16 19:42:34 +00:00
Spandan Das
73de70264a
Apply pylint to cc/symbolfile
...
PEP8 recommends using the not operator over comparision to empty string
Test: pytest build/soong/cc/symbolfile/test_symbolfile.py
Test: pylint --rcfile tools/repohooks/tools/pylintrc
build/soong/cc/symbolfile
Bug: 195738175
Change-Id: I4ed2bc0680beccc19a63d8b3f383983d4dff1baf
2021-08-16 18:59:57 +00:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
089fd1f92b
Merge "Expose Soong's default clang versions to Bazel" am: 37abc3c343
am: 645f09bea9
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1795147
Change-Id: Id9bd825c768433eb43eae98073311bbf7b46fb22
2021-08-16 18:42:14 +00:00
Xin Li
3eaa6bcecf
Merge sc-dev-plus-aosp-without-vendor@7634622
...
Merged-In: I10ff6a5df76852f0a22fe3ac22df764528f07423
Change-Id: I71f2397f425a46d346e49ac422d256d7e049c7a2
2021-08-14 06:30:56 +00:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
a38e518eb9
Expose Soong's default clang versions to Bazel
...
As `CLANG_DEFAULT_*VERSION` static strings
Bug: 192058388
Test: Existing tests pass
Change-Id: I047bc3ad9626bf67c12a0b0ac76943c79fb1b4b0
2021-08-13 17:44:07 +00:00
hamzeh
4952b52c46
Moving common fuzzing code to fuzz package am: c0a671fc80
am: 6129cb1ffb
am: 606f42f530
am: e8e56eb632
am: b3257920b9
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1775071
Change-Id: I07bef9531c95938a7b85c2496bd93d8d1b04f502
2021-08-12 03:01:53 +00:00
hamzeh
606f42f530
Moving common fuzzing code to fuzz package am: c0a671fc80
am: 6129cb1ffb
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1775071
Change-Id: I4e0fd105d57d85fb63e8620bf978424931f07f56
2021-08-12 02:11:10 +00:00
TreeHugger Robot
b5404960c9
Merge "Add uwb HAL to VndkMustUseVendorVariantList"
2021-08-12 00:30:30 +00:00
hamzeh
c0a671fc80
Moving common fuzzing code to fuzz package
...
Test: make haiku and make haiku-rust
Change-Id: Ife80cc10672f51bd6afbae7061cc9373a2a15e7d
2021-08-11 23:54:15 +00:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
f6080d8ca4
Merge "Lift BazelHandler interface into android/" am: ccb6a01324
am: 4e088148d3
am: 3079d96120
am: 47903e18ad
am: 0e5d51d6c7
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1793169
Change-Id: I274206b4c4f7ce38a44c3cfefb4f827d2fffded2
2021-08-11 22:31:17 +00:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
3079d96120
Merge "Lift BazelHandler interface into android/" am: ccb6a01324
am: 4e088148d3
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1793169
Change-Id: I4ed98cbd30139e5c2d91164c3447ef295970ae17
2021-08-11 21:36:03 +00:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
0d99045b69
Lift BazelHandler interface into android/
...
Because it's commonly useful and not cc/ specific
Also export GenerateBazelBuildActions and update uses
Test: Existing tests pass
Change-Id: Ibc6858bb1129afba181a7686dda432defe33b00d
2021-08-11 18:19:40 +00:00
Colin Cross
b2d3837eb8
Merge "Remove libjemalloc5 from default musl libraries" am: 88c5391dbe
am: 35cff6ebd9
am: 874af37b5c
am: 995483f354
am: dd770a21aa
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1784829
Change-Id: I143a1e72a5459824f9256c667f461ef6549500ec
2021-08-11 15:28:37 +00:00