Stephen Hines
a66590a98d
Remove unnecessary --warn-shared-textrel flags.
...
This flag has never done anything for ld.lld, since it has this behavior
by default (and actually can't turn it off either). It's now being
removed as a valid flag from ld.lld, so it's time for Android to drop
the unnecessary flags. See https://reviews.llvm.org/D118942 .
Test: builds
Change-Id: I22c344b7a55e275c1fbd5fef25f85e97a39de5c4
2022-02-04 11:02:17 -08:00
Liz Kammer
90585de317
Merge "Allowlist additional com.android.runtime blockers" am: cc1a2062f0
am: a26a05e7cd
am: 56df1b8a9b
am: 4d9e6e667a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1965179
Change-Id: Ia3353bbe1ab1956640790a61d402fbd0b458fce6
2022-02-04 15:20:10 +00:00
Liz Kammer
cc1a2062f0
Merge "Allowlist additional com.android.runtime blockers"
2022-02-04 14:17:32 +00:00
Chih-Hung Hsieh
13775aaefc
Disable gnu-designator warnings. am: 9df9dd4d13
am: 176015cae6
am: 8832937e3a
am: b490967af0
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1971467
Change-Id: I966d3931f5a9cb58e3f89b4839d0a2dac982b218
2022-02-04 13:25:19 +00:00
Chih-Hung Hsieh
9df9dd4d13
Disable gnu-designator warnings.
...
Bug: 217613071
Test: make
Change-Id: I51a6afdf6d4b1549d2e3b65168c3cce52d8e197d
2022-02-04 00:30:20 -08:00
Jooyung Han
91f9203af4
VNDK libs use "unique" APEX variants
...
In case there are two vendor apexes(one with "use_vndk_as_stable:true",
and the other with "use_vndk_as_stable:false") a VNDK lib used by both
will have "APEX" variant and the former APEX will use "apex" variation.
For example,
apex1(use_vndk_as_stable) -> foo -> libvndk
apex2 -> bar -> libvndk
Since foo, bar and libvndk are mutated into two APEX variations("",
"apex10000"), foo will use the apex variation of libvndk.
To fix this, VNDK libs can use "unique" APEX variations. Then, in the
above example, foo will have "myapex1" variation and libvndk will have
two APEX variations("" and "apex2"). So foo will link to ""(non-APEX)
variation as fallback.
Bug: 216847402
Test: m nothing (soong tests)
Change-Id: I116932860ef79e22dc338a58b251e3ca693ab4f3
2022-02-04 13:07:14 +09:00
Pirama Arumuga Nainar
d950ab8bb3
Switch to clang-r445002
...
- Disable -Wbitwise-instead-of-logical for external projects.
Test: N/A
Change-Id: Icb081bf6f17fcd5bf9759efa99fd26413c74f7c3
2022-02-03 13:42:13 -08:00
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