Commit Graph

7154 Commits

Author SHA1 Message Date
Sam Delmerico
75539d62ae add target_compatible_with stanza for host targets
Soong modules that are specific for the host platform (e.g.
java_library_host, cc_binary_host, java_genrule_host, etc.) should
not be built on the target platform (Android), so we add a
target_compatible_with attribute to skip this type of module on an
Android target build.

Bug: 215229742
Test: go test ./bp2build
Change-Id: Ifb76ef4e0dc4cb3adb6a64b5c375ce36f7973e48
2022-02-03 19:25:12 +00:00
Liz Kammer
35ca77edb6 Allowlist additional com.android.runtime blockers
To unblock mixed builds, uses a common mechanism to determine cc module
type across bp2build and mixed builds.

Test: mixed_droid.sh
Change-Id: I1f69ad0858cda549b7c95dbadd596e46df0f23b2
2022-02-03 11:17:05 -05:00
Edwin Wong
9586095081 Merge "Add android.hardware.drm-V1-ndk/_platform" 2022-02-03 00:54:43 +00:00
Elliott Hughes
c75994d623 Disable BTI for now.
Bug: https://issuetracker.google.com/216395195
Test: readelf -aW libc.so | grep PROPERTY
Change-Id: I4d157cbe5bf5b54cb7d3c4efe8fb74d4f72af6f3
2022-02-02 14:45:41 -08:00
Usta Shrestha
c9031001ad Merge "redundant statement" am: aab5e87431 am: fd551d0ba2 am: 8a144a3d88 am: e502431a38
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1965383

Change-Id: I37312a8f4f51a67c92d6d22e3198eb5359abc4c8
2022-02-01 03:16:26 +00:00
Usta Shrestha
e6b43abd62 redundant statement
Test: m nothing
Bug: n/a
Change-Id: Ida33234b5cf6d915a2d136d8bc0aa6684bfd33c0
2022-01-29 06:37:10 +00:00
Treehugger Robot
397c11b9b5 Merge "Revert "Reland "Enable hwasan use after scope detection.""" am: cd22b62add am: 86f074a1a4 am: cb6b5d76b8 am: 577a6d8e91
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1962182

Change-Id: Ifd92f38a8f4869ac7620c520f07ec692f799ec2b
2022-01-28 00:13:51 +00:00
Treehugger Robot
d867880303 Merge changes I728208ed,Ifdb50809 am: 428d5ad909 am: 6d67ba6d67 am: 6eb40a5b78 am: d1f8c91e4b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1963682

Change-Id: Ieb6d1c6655835a5e5e6fe011efcf1f3a5bb016f7
2022-01-27 23:13:11 +00:00
Treehugger Robot
cd22b62add Merge "Revert "Reland "Enable hwasan use after scope detection.""" 2022-01-27 22:54:24 +00:00
Pirama Arumuga Nainar
0d7d3e1647 [cc] Add per-file OWNERS for cc/coverage.go
Test: N/A
Change-Id: I728208ed9ef10e032fd12e495ba67121e4c849e5
2022-01-27 10:49:13 -08:00
Pirama Arumuga Nainar
f776c8c47c [cc/coverage] Override/disable -Wframe-larger-than
We can expect frame size increase with coverage instrumentation.

Test: N/A
Change-Id: Ifdb50809c83939ded5a26804aa0ae9404eb1a107
2022-01-27 10:47:55 -08:00
Liz Kammer
2b376bca00 Create subdir for cc rules.
Test: mixed_libc.sh
Change-Id: I7f43f283f40ad6236dcedfccae175a007ea252d2
2022-01-27 11:16:34 -05:00
Yi Kong
df8b66863c Merge "Add tests for afdo.go" am: a86875eefb am: 0a3a678a16 am: 65ab797a36 am: f473605a47
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1961260

Change-Id: I58663272e24806104d21b2613d91902f4ceb3530
2022-01-27 05:30:32 +00:00
Yi Kong
a86875eefb Merge "Add tests for afdo.go" 2022-01-27 04:27:28 +00:00
Florian Mayer
fd337b3963 Revert "Reland "Enable hwasan use after scope detection.""
This reverts commit 0edaddf2ce.

Reason for revert: b/http://b/214007768

Change-Id: I60a2e3a5386601992fcb5632c142dd28bdb611b2
2022-01-27 03:31:28 +00:00
Treehugger Robot
ab776f7c64 Merge "[cc/tidy] Disable cert-err33-c" am: 2d305010af am: e66acc24ed am: 2d19e0908d am: 66c73ffe6d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960241

Change-Id: I4a2ab2411134f8e17663b255ced58afd238a552f
2022-01-26 12:06:13 +00:00
Treehugger Robot
2d305010af Merge "[cc/tidy] Disable cert-err33-c" 2022-01-26 10:34:58 +00:00
Yi Kong
d5954a2a92 Add tests for afdo.go
Bug: 79161490
Test: presubmit
Change-Id: I686b5226aad5011ab30a0a105f8c7866cd610502
2022-01-26 17:46:33 +08:00
Yi Kong
4fc46eebab Merge "Sampling PGO deprecation" am: 3440d0d474 am: 7449127548 am: 768f69320f am: bef7ee1451
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960104

Change-Id: If974f3b8e859f8374199dd396e3aef3e3ad4fe56
2022-01-26 07:18:06 +00:00
Yi Kong
3440d0d474 Merge "Sampling PGO deprecation" 2022-01-26 05:43:42 +00:00
Treehugger Robot
fa113b6718 Merge "[NFCI] Change llvm-ar '-format' to be '--format'." am: f73658bdc6 am: 02dc83d69f am: 9e26721c8a am: d4eec32223
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959508

Change-Id: Ie1dba99395aba3cf00469a2171dc3f968451f861
2022-01-26 02:03:25 +00:00
Treehugger Robot
f73658bdc6 Merge "[NFCI] Change llvm-ar '-format' to be '--format'." 2022-01-26 00:53:36 +00:00
Pirama Arumuga Nainar
5fc137b63b [cc/tidy] Disable cert-err33-c
Bug: http://b/216364337

This check warns when return values of standard-library functions
(including fprintf, snprintf) are not checked. Some of these warnings
turn to error when tidy_checks_as_errors in Android.bp.

Disable this for now and follow-up after compiler update to disable or
fix individual instances.

Test: Build with new compiler
Change-Id: I5af89b3f9cea4961c69708c51d22c510d478405b
2022-01-25 15:45:06 -08:00
Mitch Phillips
ed0dd76eaa [NFCI] Change llvm-ar '-format' to be '--format'.
Upcoming versions of the toolchain (at least when I was locally testing)
drop support for the single-dashed argument type. Fixing this ahead of
time as to hopefully avoid the toolchain-release-blocking bug in future
:).

Bug: N/A
Test: Build the platform.
Change-Id: Ia2c6dcb19556f1979f9a6ecfd3a0ec58fb73e36e
2022-01-25 10:35:50 -08:00
Yi Kong
470f76f589 Sampling PGO deprecation
Everything is now switched over to AFDO, let's deprecate sampling PGO.

Keep the code around for a little while longer in case anything needs to
revert back.

Test: presubmit
Change-Id: Ibd838bbd0e1157343fcdc2eca40de5b99126fe6f
2022-01-26 02:34:34 +08:00
Treehugger Robot
19606328db Merge "Allow static binaries to enable AFDO" am: efdc4f4d42 am: 162f9c5f33 am: 29e6277c10 am: edbd3e1e62
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1958922

Change-Id: I7bf0988b48d919c817e5cc9831197474a08bbf47
2022-01-25 09:55:44 +00:00
Treehugger Robot
efdc4f4d42 Merge "Allow static binaries to enable AFDO" 2022-01-25 08:35:03 +00:00
Yi Kong
ae03c45941 Merge "OWNERS: native toolchain team owns afdo.go" am: a1f50efd3a am: 1f1a6de3c2 am: ab52607676 am: ee133c13ed
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1958923

Change-Id: I46697822f8c079dfc0480b753027e6504ff2c78c
2022-01-25 06:32:27 +00:00
Yi Kong
88e632e263 Allow static binaries to enable AFDO
The static() property is true for both static libraries and static
binaries. We should allow static binaries to enable AFDO.

Test: Enable AFDO for linker
Change-Id: I409fc9f764ea878f01dc42bb2e5c075219403009
2022-01-25 05:22:01 +00:00
Yi Kong
a1f50efd3a Merge "OWNERS: native toolchain team owns afdo.go" 2022-01-25 05:21:29 +00:00
Liz Kammer
91cb3edfe9 Merge "Delete toolchain_library" am: fe813c53a5 am: 8fe2be8732 am: a17c51f9d2 am: 0a74333f0f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1950256

Change-Id: I76f4ff328dcbef82546deb19c3cc2f23496e7588
2022-01-24 22:45:55 +00:00
Liz Kammer
fe813c53a5 Merge "Delete toolchain_library" 2022-01-24 21:45:36 +00:00
Yi Kong
907f0f50c3 OWNERS: native toolchain team owns afdo.go
Change-Id: I9dbc03f8cac4bd64d88f4536e4bb7567419507e5
2022-01-25 03:18:40 +08:00
Treehugger Robot
31751ab5f6 Merge "Don't install static snapshot to device" am: bbd42fa946 am: 0e280f68fd am: bbdecd852f am: a419d38f10
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1956009

Change-Id: I5e3fbf528b2f072c918b23101ca2b1e53ec1bd42
2022-01-22 05:34:11 +00:00
Yi Kong
a9a3f45ecc Merge "AFDO for Rust" am: 7433f1d1dc am: ca33132ee5 am: a555849fad am: e69738f9f8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1956003

Change-Id: I6050acbaa80fbd8e4e902ac246d23733f33b5be8
2022-01-22 05:33:59 +00:00
Treehugger Robot
bbd42fa946 Merge "Don't install static snapshot to device" 2022-01-22 04:40:47 +00:00
Treehugger Robot
cd08e2b17f Merge "Reland "Make DWARF v5 the default debug information format."" am: 87d576c0a5 am: c91faa3247 am: 3515390b86 am: 4c9b6ac99c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1954424

Change-Id: If7c1428d7ae0c9999f1e714668f4a887db6f9a52
2022-01-22 04:33:23 +00:00
Yi Kong
7433f1d1dc Merge "AFDO for Rust" 2022-01-22 04:16:27 +00:00
Treehugger Robot
87d576c0a5 Merge "Reland "Make DWARF v5 the default debug information format."" 2022-01-22 03:32:43 +00:00
Florian Mayer
ad753c1611 Merge "Reland "Enable hwasan use after scope detection."" am: c9b5aa8138 am: 82d86db1b5 am: 47355233bd am: e2a3f4ae8c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1908110

Change-Id: I71ba391b361fa8b488bb630934ec2ff0131ab460
2022-01-21 21:14:30 +00:00
Florian Mayer
c9b5aa8138 Merge "Reland "Enable hwasan use after scope detection."" 2022-01-21 19:46:22 +00:00
Yi Kong
46c6e59415 AFDO for Rust
Bug: 195134194
Bug: 165018530
Test: build
Change-Id: I30932a22dc0b22716cdc925a3fcc5f9a169fcec4
2022-01-21 18:13:18 +08:00
Inseob Kim
bf1b63f90a Don't install static snapshot to device
Static snapshots are wrongly being installed to the device, due to
installFile call.

Bug: 215081717
Test: manually create modules and see result Android.mk
Change-Id: I9229278c801b1ed11b3fd2803e531a97e9dc9a90
2022-01-21 18:49:07 +09:00
Jingwen Chen
3d738859cf Export stub library compiler flags to soong_injection. am: 341f73550d am: 82f468476b am: db371b48a5 am: fec1d0f005
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1944691

Change-Id: I90f7ea771b2446826c25de70cdd58d2df1cdb52c
2022-01-21 05:54:41 +00:00
Jingwen Chen
341f73550d Export stub library compiler flags to soong_injection.
These are used by the "stub_library" cc toolchain feature.

Test: CI
Bug: 207812332
Change-Id: I392e51f32c92b30b30e85658e7627e16190bdbad
2022-01-21 01:43:13 +00:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
8e833d1145 Merge "libclang_rt_prebuilt_library_shared mixed builds" am: d1227b20aa am: 76b40bab19 am: 598bcad5ce am: c47c92d82d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1845157

Change-Id: I1bd15b1a80b68c6392fc77ba76a3dd862c80d4e6
2022-01-20 22:24:30 +00:00
Florian Mayer
0edaddf2ce Reland "Enable hwasan use after scope detection."
This reverts commit 77d0035a07.

Reason for revert: Fixing broken test in topic.

Change-Id: Ia09b6768e725af025522a25ad1289e9380b6bbbd
2022-01-20 19:34:36 +00:00
Stephen Hines
8afd175e43 Reland "Make DWARF v5 the default debug information format."
This reverts commit bb1a17aecb.

Bug: http://b/182004844
Bug: http://b/195152239
Bug: http://b/195698910
Test: Builds

Change-Id: I6f84bd7e0f2a26799de2d6b9db4abe5d3dc968be
2022-01-20 11:01:47 -08:00
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
c3b97c3568 libclang_rt_prebuilt_library_shared mixed builds
Also fix nil deref in setting $LOCAL_SOONG_UNSTRIPPED_BINARY

Bug: 201802518
Test: request_type_test.go
Test: prebuilt_test.go:TestPrebuiltLibrarySharedWithBazel
Test: mixed_{libc,droid}.sh
Change-Id: I22afb56c4b42d3412c2b2e1f079f1bcf8f3129a7
2022-01-20 12:03:18 -05:00
Pirama Arumuga Nainar
c958c40e1c Merge "Revert memory mapped coverage" am: 3ae0b5a7c1 am: 7a1dbabc40 am: ebfac819ee am: 028a581787
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1953529

Change-Id: I4731d737ffdae6873a1749b1c2f8956ed16e2ff7
2022-01-19 07:09:47 +00:00