Colin Cross
652dbcaa9a
Merge changes from topic "musl_clang_runtimes" am: 0f2a718ce4
am: e3f28d26a6
am: c068a7d423
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1980450
Change-Id: I45f717f96780715af04c0c4eef61bd4db763cc63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-03-30 04:51:05 +00:00
Colin Cross
a152356349
Switch to libunwind to remove dependency on libgcc for musl am: 441898c285
am: b7ea2f5c7e
am: d1b5f338e5
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1983628
Change-Id: I015e1b22dbcc2dbfdd9c2eb053d8ae94bfd8fcd7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-03-30 04:51:00 +00:00
Colin Cross
441898c285
Switch to libunwind to remove dependency on libgcc for musl
...
The libgcc dependency is only used for _Unwind* symbols, remove
it now that libc_musl.so embeds libunwind.a.
Bug: 215802826
Test: m USE_HOST_MUSL=true host-native
Change-Id: I1ad4c1435fc0090c6df2d50d542d2203dfb94d7b
2022-03-29 13:35:17 -07:00
Colin Cross
ed12a04a3e
Enable sanitizers for musl
...
Now that we provide runtimes built for musl, enable the sanitizers
when targeting musl.
Bug: 215802826
Test: m USE_HOST_MUSL=true host-native
Change-Id: Id17513ee305274874c31e9c99ce4faeff4a1c057
2022-03-29 13:35:17 -07:00
Treehugger Robot
2f9953b7ee
Merge "Dedupe libraries in both static and whole static" am: 6876d5aa5f
am: 0c576c591f
am: 509c730ec9
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2032378
Change-Id: Iead517d8e7d92144ed625b2f0b2b04f7808acfac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-03-26 01:06:56 +00:00
Treehugger Robot
6876d5aa5f
Merge "Dedupe libraries in both static and whole static"
2022-03-26 00:32:01 +00:00
Mitch Phillips
b6194c08cd
Merge "[HWASan] Enable zero-initialization." am: c6ea944e18
am: ab50a4f910
am: 2c491d8302
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2037383
Change-Id: I25593c51078fcbdc5705aa0b588b8e0d29790183
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-03-25 21:46:28 +00:00
Mitch Phillips
c6ea944e18
Merge "[HWASan] Enable zero-initialization."
2022-03-25 20:53:02 +00:00
Yi Kong
6233591d63
Merge "Update to clang-r450784" am: 846a25912d
am: 5c1c1cc020
am: 8b5f050b64
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2027885
Change-Id: I9fc50c9978723c4198e94c647c1f3dea56a6d7a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-03-25 06:47:08 +00:00
Yi Kong
846a25912d
Merge "Update to clang-r450784"
2022-03-25 05:49:48 +00:00
Yi Kong
75ce5d3320
Update to clang-r450784
...
Test: presubmit
Bug: 219872355
Change-Id: I3cd5f42d887b07929906e08d7d9f1a677b8a4403
2022-03-25 04:30:53 +00:00
Mitch Phillips
597605603a
[HWASan] Enable zero-initialization.
...
Previously, we use to fill memory with 0xbe bytes. This caused a lot of
problems that necessitated disablement. For example, 0xbe-filled mutexes
are apparently locked, and there were a few instances of
uninitialized-mutex use.
Given that zero-fill is now the default behaviour, enable zero-init in
HWASan as well.
For now, only fill the first page. It would be preferable to fill the
whole allocation, but I don't want to spin for too many cycles filling
huge secondary pages. In future, we might change the behaviour to have
an explicit "zero initialize" option that completely fills the primarily
allocations, and knows it's unnecessary for the secondary.
Bug: 226078464
Test: Boot w/ HWASan (done by presubmit robot)
Change-Id: I7de3a7f9fa2fdeb5116e5bf6586babe4d06fcb91
2022-03-22 18:38:34 +00:00
Liz Kammer
cc2c1efc9a
Dedupe libraries in both static and whole static
...
In Soong, libraries can appear in both static and whole static libs;
however, in Bazel, this results in errors due to duplicate libraries.
Test: bp2build.sh
Change-Id: I9dda4f7a7812340d28a6160d0e25f421c9db6612
2022-03-21 09:03:29 -04:00
Yu Liu
6b9500730d
Merge "Support tailoring clang --target flag based on min sdk version." am: ba4638f529
am: 41b4e249ce
am: 0db78356ba
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2011702
Change-Id: I3567734c306f7f2659a879fc2b2d95e610bca1b9
2022-03-19 16:41:20 +00:00
Yu Liu
fc603167f4
Support tailoring clang --target flag based on min sdk version.
...
Bug: 215748260
Test: Tested using aquery to verify the --target flag; add added unit
Change-Id: Ifb13509db7d1e110316aa44d55ec9cccaa4b83d1
2022-03-18 01:16:52 +00:00
Colin Cross
325def643b
Merge changes Iac0f4ca9,I4a56efb2 am: ce73506a85
am: 6d21a821d1
am: 4dcc4aece0
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2017057
Change-Id: I814cd0807409721ce057c39cb6daf9b8a1c31d15
2022-03-09 17:04:11 +00:00
Treehugger Robot
f77f1df236
Merge changes from topic "vsdk_ramdisk" am: 86ac783d8e
am: 849a844f04
am: ab80ba5b4c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2012416
Change-Id: Id7d484877e21f07ec3cfa9fd0e882c8414c9e816
2022-03-09 10:49:10 +00:00
Colin Cross
7e2092a274
Support BUILD_HOST_static=1 for musl and linux_bionic builds
...
BUILD_HOST_static=1 is useful for musl and linux_bionic builds to
produce standalone static binaries.
Bug: 179809553
Test: m USE_HOST_MUSL=true BUILD_HOST_static=1 apexer deapexer
Change-Id: Iac0f4ca92c3ffb27bccd4cac15a6ef9fa5924471
2022-03-08 15:15:56 -08:00
Treehugger Robot
86ac783d8e
Merge changes from topic "vsdk_ramdisk"
...
* changes:
Add InstallInRoot property to snapshot binary json file.
Fix for duplicate modules across vendor and ramdisk snapshots.
2022-03-08 17:10:54 +00:00
Treehugger Robot
ce2d8950a0
Merge "Memory mapped coverage (take 2)" am: c8a6487153
am: 079c381504
am: 4a759d5b33
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2009378
Change-Id: I29ebf63aad871a4c569d399ef54e69ebc459f117
2022-03-08 07:54:54 +00:00
Treehugger Robot
4a759d5b33
Merge "Memory mapped coverage (take 2)" am: c8a6487153
am: 079c381504
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2009378
Change-Id: If280e01532aef4a703d0ffc3038ef4773526f8ef
2022-03-08 07:31:50 +00:00
Colin Cross
3c66771c62
Merge "Use single module for clang runtime libraries"
2022-03-08 06:51:43 +00:00
Colin Cross
4c4c1be915
Use single module for clang runtime libraries
...
The clang prebuilts now provide a single module with per-architecture
variants instead of a module per architecture.
Bug: 220019988
Test: m checkbuild
Change-Id: I39e2cf8ae14edf8510276dab38011afaef85822c
Merged-In: I39e2cf8ae14edf8510276dab38011afaef85822c
2022-03-07 14:56:32 -08:00
Jose Galmes
c1a56bcbe9
Add InstallInRoot property to snapshot binary json file.
...
Bug: 215295121
Test: Generated snapshot and verified InstallInRoot property is present.
Change-Id: I4f20a454477d1263e9c16e98468d659f89e1e4f1
2022-03-07 14:49:46 -08:00
Pirama Arumuga Nainar
b37ae58a3d
Memory mapped coverage (take 2)
...
Add a build variable, CLANG_COVERAGE_CONTINUOUS_MODE, instead of
selecting based on paths.
Test: CLANG_COVERAGE_CONTINUOUS_MODE=true m and verify continuous mode works
Change-Id: I731172fc1f00e1cabff8efcf8b99f9a48210b446
2022-03-04 14:07:53 -08:00
Liz Kammer
bdd24b1ea3
Merge "Export variant/features via soong_injection" am: 6e4cd27bec
am: a1b33112b1
am: 1bf0a42c98
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2000396
Change-Id: I361123ce6d7c1dc4400fac67b13373c022a800b8
2022-03-03 19:22:59 +00:00
Liz Kammer
1bf0a42c98
Merge "Export variant/features via soong_injection" am: 6e4cd27bec
am: a1b33112b1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2000396
Change-Id: I6b403e30a36113a4bda62eef6d94f58c5f79e9ed
2022-03-03 18:59:55 +00:00
Liz Kammer
6e4cd27bec
Merge "Export variant/features via soong_injection"
2022-03-03 18:11:25 +00:00
Treehugger Robot
787bf8a5f4
Merge "Revert "[cc_fuzz] Revert 'disable LTO' patches."" am: 5c8693f5d7
am: 3807ca1cdf
am: eafe37dfb7
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2004383
Change-Id: I3d5f6c2a9e539d0a9942d5c50471987dc4e887d7
2022-03-02 06:29:00 +00:00
Treehugger Robot
eafe37dfb7
Merge "Revert "[cc_fuzz] Revert 'disable LTO' patches."" am: 5c8693f5d7
am: 3807ca1cdf
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2004383
Change-Id: Ifa0e8a069b09edc4ba9a6988306291c1df5fd4de
2022-03-02 06:05:40 +00:00
Treehugger Robot
5c8693f5d7
Merge "Revert "[cc_fuzz] Revert 'disable LTO' patches.""
2022-03-02 05:08:27 +00:00
Mitch Phillips
5007c4a06d
Revert "[cc_fuzz] Revert 'disable LTO' patches."
...
Revert submission 1976512-revert-nolto-fuzzing
Reason for revert: b/222160662
Reverted Changes:
Iacee4fa29:[cc_fuzz] Revert 'disable LTO' patches.
Ic509b00a1:[cc_fuzz] Revert 'disable LTO' patches.
If85931f09:[cc_fuzz] Revert 'disable LTO' patches.
Change-Id: I84e01a4f84145e3331c2955836c8cc9bfa05c36b
2022-03-02 01:25:22 +00:00
Treehugger Robot
0e97819e91
Merge "[cc_fuzz] Revert 'disable LTO' patches." am: 6c0de9938e
am: 998e34c8fd
am: 29ad0112d5
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1976512
Change-Id: I77603015a36ac8583d0ea602bd37b57f5ef575bb
2022-03-02 00:55:17 +00:00
Treehugger Robot
29ad0112d5
Merge "[cc_fuzz] Revert 'disable LTO' patches." am: 6c0de9938e
am: 998e34c8fd
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1976512
Change-Id: Iec08cb88461a4502c94b7d58cd4749b4fc9d1ad1
2022-03-02 00:33:57 +00:00
Treehugger Robot
6c0de9938e
Merge "[cc_fuzz] Revert 'disable LTO' patches."
2022-03-01 23:43:04 +00:00
Colin Cross
655be5dba9
Merge "Use single module for clang runtime libraries" into sc-v2-dev-plus-aosp am: 135513ae65
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/17036885
Change-Id: I72d5cdd315cad007f6f6a1a1a91f8ca272014f9c
2022-03-01 01:20:47 +00:00
Colin Cross
fc0df95df5
Use single module for clang runtime libraries
...
The clang prebuilts now provide a single module with per-architecture
variants instead of a module per architecture.
Bug: 220019988
Test: m checkbuild
Change-Id: I39e2cf8ae14edf8510276dab38011afaef85822c
(cherry picked from commit 386ee59a23
)
Merged-In:I39e2cf8ae14edf8510276dab38011afaef85822c
2022-02-28 21:01:05 +00:00
Liz Kammer
e8303bd0ae
Export variant/features via soong_injection
...
Test: build/bazel/ci/bp2build.sh
Change-Id: If70043dc9d020d5f4a243ba4b192b99c9c7e8563
2022-02-28 14:17:15 -05:00
Treehugger Robot
0b182eddff
Merge "Fix snapshot symlinks" am: 97491ead9e
am: abdcb636cb
am: 7783beb7e8
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1998310
Change-Id: If2fa266644667de4d44927f41867dbcc3217fe98
2022-02-25 01:48:59 +00:00
Treehugger Robot
97491ead9e
Merge "Fix snapshot symlinks"
2022-02-25 00:41:35 +00:00
Inseob Kim
4d945ee719
Fix snapshot symlinks
...
LOCAL_MODULE_SYMLINKS was enough to install symlinks for snapshot
binaries. However, Soong now requires LOCAL_SOONG_INSTALLED_SYMLINKS,
which results in broken symlink support in snapshots.
This fixes symlink problems, and then amends the Soong snapshot test.
Bug: 220639435
Bug: 220907049
Test: manually add symlinks and try building
Test: Soong test
Change-Id: Ia75ddf3aa642558e396f1d80736310c3c8d02ad1
2022-02-24 10:29:18 +09:00
Treehugger Robot
415b0d442f
Merge "Fix typos in arch_list and do variant validation" am: cda344f120
am: e8815d5ebb
am: 94fff59456
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1982666
Change-Id: I9f6be5cd2673b4e5e5eef52ee8132b0c31d348ba
2022-02-23 18:43:29 +00:00
Sam Delmerico
b80790ec41
Merge "convert java proto libraries with bp2build" am: bc83b504ff
am: 4dc3df7be7
am: 0d8dd4692b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1975287
Change-Id: Ie93ce69b956aedbd4999283886ef9340d88fe530
2022-02-23 17:57:13 +00:00
Martin Stjernholm
24424b5678
Mark implementation variant of prebuilts with stubs as not installable am: 5bdf2d589c
am: 60da7cf31e
am: 8d9cd1becc
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1974259
Change-Id: I5c30bc8038dbb40827cb052e9e454510a7899632
2022-02-23 17:56:45 +00:00
Treehugger Robot
cda344f120
Merge "Fix typos in arch_list and do variant validation"
2022-02-23 17:34:51 +00:00
Sam Delmerico
bc83b504ff
Merge "convert java proto libraries with bp2build"
2022-02-23 16:13:15 +00:00
Martin Stjernholm
5bdf2d589c
Mark implementation variant of prebuilts with stubs as not installable
...
This is necessary to avoid installing them. Previously, when install
dependencies were resolved in make, they weren't installed because they
got a .bootstrap suffix in their mk modules. However when that logic
moved into Soong by resolving transitive dependencies in
computeInstallDeps, they started to get dependencies and hence their
stubs could get installed, e.g. system/lib{,64}/libdexfile.so from
prebuilt_libdexfile.
Test: m nothing
Test: env NINJA_ARGS="-t path droid out/target/product/vsoc_x86_64/system/lib64/libdexfile.so" \
m SOONG_CONFIG_art_module_source_build=false nothing
verify that ninja reports no dependency path
Bug: 211770050
Bug: 220898484
Change-Id: Ifbfe31a15428926ce57b9e91b535b7ae79038fbd
2022-02-23 09:19:18 +00:00
Yi Kong
91d66d3c04
Merge "Turn on Unique Internal Names for AFDO" am: e69b021758
am: 38d0106dad
am: e50f27d358
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1977996
Change-Id: Ic0f538f15c1a23febcb6257a6f4d421028f69ee0
2022-02-22 13:17:07 +00:00
Yi Kong
e69b021758
Merge "Turn on Unique Internal Names for AFDO"
2022-02-22 12:07:55 +00:00
David Anderson
a480cc78ef
Merge "Add an __ANDROID_RAMDISK__ preprocessor define." am: 7309742728
am: 6a3b60969e
am: 13f34bef8d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1989090
Change-Id: Ibbd1c1130c90f28aa5822fe73c907d55bfd14df1
2022-02-19 00:56:11 +00:00