Yi Kong
577a73a22d
Change lto_test to use GlobalThinLTO configuration
...
This is now the default, and we will be removing non-GlobalThinLTO configuration.
Also changed handling for lto: never, it doesn't need to create an
lto-none variant.
Change-Id: I971baa920df867fb762923d925eed22215a89c27
Test: presubmit
2023-10-05 05:05:40 +00:00
Kiyoung Kim
9b31abbd26
Merge "Do not allow a module exists both in provideLibs and requireLibs" into main am: f2fd12d97c
am: 25ee09b5b6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2762828
Change-Id: I61b4711eb26a6819014b47815ede5ab198b3c5ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 04:59:41 +00:00
Kiyoung Kim
25ee09b5b6
Merge "Do not allow a module exists both in provideLibs and requireLibs" into main am: f2fd12d97c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2762828
Change-Id: I9e576f8495ca392093d51b2b330fe61da5373ae3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 04:27:36 +00:00
Treehugger Robot
1f66a5680e
Merge "Add more information to the ABI error message." into main am: 98b3cb2787
am: dc02013beb
am: cc7b24f36b
am: 0666982307
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2773847
Change-Id: I470042734be6fb80b7518dd7b1390354cc45c479
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 04:12:12 +00:00
Treehugger Robot
87f7fb72be
Merge "Add packages/modules/Connectivity/staticlibs/netd/libnetdutils" into main am: 65a06d460f
am: ad5c8c1460
am: 30de5c190d
am: 2c8ce9b808
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2773845
Change-Id: I7a920912daca8cb953b611aaef4e933f69458fcc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 04:12:00 +00:00
Spandan Das
08ab008405
Merge "Create bp2build converter for versioned_ndk_headers" into main am: ee557e4c69
am: 93cc736f1e
am: f213c6dafc
am: 09e3710a2d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769119
Change-Id: I36f34c9b32331710087d94cc37eaaf334931c9b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 04:11:46 +00:00
Kiyoung Kim
f2fd12d97c
Merge "Do not allow a module exists both in provideLibs and requireLibs" into main
2023-10-05 03:54:36 +00:00
Treehugger Robot
0666982307
Merge "Add more information to the ABI error message." into main am: 98b3cb2787
am: dc02013beb
am: cc7b24f36b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2773847
Change-Id: I5fa46ab3751d27f1ce595f3aa4c68387c71e7356
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 03:39:15 +00:00
Treehugger Robot
2c8ce9b808
Merge "Add packages/modules/Connectivity/staticlibs/netd/libnetdutils" into main am: 65a06d460f
am: ad5c8c1460
am: 30de5c190d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2773845
Change-Id: I9914e70e29ddfd46e57c67b794eab697487e4f04
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 03:39:05 +00:00
Spandan Das
09e3710a2d
Merge "Create bp2build converter for versioned_ndk_headers" into main am: ee557e4c69
am: 93cc736f1e
am: f213c6dafc
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769119
Change-Id: Ibe0b70a5b3d1fcc7f7dd55dc8d6944c3b2f30f4d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 03:38:49 +00:00
Treehugger Robot
cc7b24f36b
Merge "Add more information to the ABI error message." into main am: 98b3cb2787
am: dc02013beb
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2773847
Change-Id: Id8dbacce270a65c07abbb08adb7c6387018f5527
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 03:06:51 +00:00
Treehugger Robot
30de5c190d
Merge "Add packages/modules/Connectivity/staticlibs/netd/libnetdutils" into main am: 65a06d460f
am: ad5c8c1460
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2773845
Change-Id: If88154713032b3aa19fd1f2c56a28a5363e65655
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 03:06:41 +00:00
Spandan Das
f213c6dafc
Merge "Create bp2build converter for versioned_ndk_headers" into main am: ee557e4c69
am: 93cc736f1e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769119
Change-Id: Ibdb0e99ce4f7631e0955da13af40f4fe0c43d360
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 03:06:28 +00:00
Treehugger Robot
dc02013beb
Merge "Add more information to the ABI error message." into main am: 98b3cb2787
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2773847
Change-Id: I59841cfdeb119aeb2cbd19c971d61bf7773a2ba7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 02:36:22 +00:00
Treehugger Robot
ad5c8c1460
Merge "Add packages/modules/Connectivity/staticlibs/netd/libnetdutils" into main am: 65a06d460f
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2773845
Change-Id: Iabfb5fcfe84f3bfeaaa7e7dd6f83600176935d92
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 02:36:10 +00:00
Spandan Das
93cc736f1e
Merge "Create bp2build converter for versioned_ndk_headers" into main am: ee557e4c69
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769119
Change-Id: Ie4240b71b3089ba3fa771ce122fe34c9d6a4f15e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-05 02:35:54 +00:00
Treehugger Robot
98b3cb2787
Merge "Add more information to the ABI error message." into main
2023-10-05 02:28:23 +00:00
Treehugger Robot
65a06d460f
Merge "Add packages/modules/Connectivity/staticlibs/netd/libnetdutils" into main
2023-10-05 02:22:17 +00:00
Spandan Das
ee557e4c69
Merge "Create bp2build converter for versioned_ndk_headers" into main
2023-10-05 02:00:55 +00:00
Kiyoung Kim
3df5f50e1a
Do not allow a module exists both in provideLibs and requireLibs
...
There was an issue that a library installed in the system with stub is
manually marked as requireLibs, so it created link to the self (system)
namespace from linkerconfig. This change checks from conv_linker_config
if there is any common module in provideLibs and requireLibs before
write result to output path.
Bug: 298333253
Test: Build failed when the common module is not removed.
Change-Id: I855dfc3484bb6c1fec24d498703c4a2a805913c0
2023-10-05 10:27:43 +09:00
Dan Albert
3440a6697e
Add more information to the ABI error message.
...
Just knowing it failed is pretty useless. Tell people how to update
the ABI dumps.
Bug: http://b/156513478#comment43
Test: m ndk # after breaking the ABI
Change-Id: I7ed6a0acf2d1fbd942410678fc6aba2afbc5a2b6
2023-10-04 23:46:38 +00:00
Christopher Parsons
185d978646
Merge "create, but dont register, bp2build_deps mutator" into main am: 29c559b785
am: a07eedf390
am: 413fa13863
am: 5a9bfd78c1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768645
Change-Id: I691f75e255d624f60797e7fd328324bcb8653e6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 23:40:58 +00:00
Vinh Tran
afe0c3aa2c
Merge "Export rust flags to bazel" into main am: 4414c4e7ff
am: c4f7a89c7a
am: 66844c35d1
am: 06e946c835
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2758107
Change-Id: I7155bb8ff426c252eae29b206606a577bf9d0919
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 23:39:57 +00:00
Treehugger Robot
70daba843a
Merge "Expand regex for likely aidl filegroups" into main am: e88fe1fb92
am: 4f20dc378d
am: a0e49b2b41
am: 39c0bf5e8d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768335
Change-Id: Iaf5516bee750048e9f73dfddd0c89c67ff3c93a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 23:39:47 +00:00
Spandan Das
62e66592b3
Add packages/modules/Connectivity/staticlibs/netd/libnetdutils
...
This dir contains a dep of FrameworksNetTests
Test: b build
//packages/modules/Connectivity/staticlibs/netd/libnetdutils/...
--config=android
Bug: 297405814
Change-Id: Ia3b0b99b1230bf6cd43dff6c87309b31b70351c0
2023-10-04 23:35:52 +00:00
Christopher Parsons
5a9bfd78c1
Merge "create, but dont register, bp2build_deps mutator" into main am: 29c559b785
am: a07eedf390
am: 413fa13863
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768645
Change-Id: I59387a90bd8fec3983a50db11ed9472294246133
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 23:10:07 +00:00
Vinh Tran
06e946c835
Merge "Export rust flags to bazel" into main am: 4414c4e7ff
am: c4f7a89c7a
am: 66844c35d1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2758107
Change-Id: I0a50494b6139b21c0678af947f4d642e0a2c3fc3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 23:09:44 +00:00
Treehugger Robot
39c0bf5e8d
Merge "Expand regex for likely aidl filegroups" into main am: e88fe1fb92
am: 4f20dc378d
am: a0e49b2b41
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768335
Change-Id: I19ce6d54076e7e49f2f2afbeb5ffbdd86319cca0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 23:09:35 +00:00
Vinh Tran
8321763764
Export device arm64 rust flags to Bazel
...
Test: b build //build/bazel/examples/rust:all --config=android
Change-Id: I2656dc963cc4fe0c42da52a0d2a235b5cd86fa13
2023-10-04 18:26:13 -04:00
Christopher Parsons
413fa13863
Merge "create, but dont register, bp2build_deps mutator" into main am: 29c559b785
am: a07eedf390
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768645
Change-Id: Ib61c9dca6d09e935def48402c7db9953f696071c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 22:20:05 +00:00
Vinh Tran
66844c35d1
Merge "Export rust flags to bazel" into main am: 4414c4e7ff
am: c4f7a89c7a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2758107
Change-Id: Ifb2ac6b24df0ee894353fb534d042c88699bcadd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 22:19:28 +00:00
Treehugger Robot
a0e49b2b41
Merge "Expand regex for likely aidl filegroups" into main am: e88fe1fb92
am: 4f20dc378d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768335
Change-Id: Iecada94df2c736b5a4afa7554eb50655b808d395
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 22:19:19 +00:00
Elliott Hughes
4b350985eb
riscv64: assume fast unaligned access.
...
We have a CTS test for this, so we may as well let the compiler take
advantage!
Test: treehugger
Change-Id: Icb6dc73be5e6da1155f39ca03245ae6b9d24dfb5
2023-10-04 14:50:03 -07:00
Christopher Parsons
a07eedf390
Merge "create, but dont register, bp2build_deps mutator" into main am: 29c559b785
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768645
Change-Id: I45187628f78551bc3b6638a4563434d6dd28bb84
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 21:48:17 +00:00
Vinh Tran
c4f7a89c7a
Merge "Export rust flags to bazel" into main am: 4414c4e7ff
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2758107
Change-Id: I9ffea540fd7c16c879b8fa0e1f75184be86a475e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 21:47:14 +00:00
Treehugger Robot
4f20dc378d
Merge "Expand regex for likely aidl filegroups" into main am: e88fe1fb92
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768335
Change-Id: Iebfd7023a546eacccdad6f7972e3ff5d6b9e6943
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 21:46:59 +00:00
Christopher Parsons
29c559b785
Merge "create, but dont register, bp2build_deps mutator" into main
2023-10-04 21:38:49 +00:00
Vinh Tran
4414c4e7ff
Merge "Export rust flags to bazel" into main
2023-10-04 21:22:15 +00:00
Treehugger Robot
e88fe1fb92
Merge "Expand regex for likely aidl filegroups" into main
2023-10-04 21:11:18 +00:00
Kousik Kumar
ca390b2f00
Update symlinks in output directory when TOP dir changes
...
When TOP dir changes and we reuse the same output between the old and new checkouts, we need to rewrite all the symlinks used by Bazel and other tools in the out-directory to point to the new top directory. Otherwise, if the old source dir is deleted, the build will fail.
I used the OUT_DIR/soong/soong.environment.available file to find out the previous PWD.
Tested:
1. Create source dir 1, run build, create source dir 2, remote source dir 1, reuse out dir and rerun build => build succeeded with this change.
2. m libc after moving build TOP. Only the analysis phase was rerun, the actual build was not rerun.
Bug: b/300498226
Change-Id: I196625baa1f4efe7a4734accfa1f0be7c98a7920
2023-10-04 21:07:36 +00:00
Alix
141ab6adde
use message in android.AssertStringMatches()
...
function does not currently use the message argument passed to it.
outputting this as part of the error message would be helpful for any
failures.
Change-Id: I5307df1567e79d85f81edd5a9eb3d4a093041535
2023-10-04 20:19:54 +00:00
Treehugger Robot
ec9f51069c
Merge "Don't create withres-withoutdex files for R8" into main am: 31a5b2c1ef
am: c2c6d39f72
am: 0453c9526c
am: c4fa542b36
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768496
Change-Id: Ieb987e391085fb73d5f7746572bc90bec1141eb5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 18:50:58 +00:00
Treehugger Robot
5349cc910e
Merge "Remove unnecessary flag for Kotlin compiles" into main am: c68afc4e9f
am: 1f02fc33a2
am: 742a8bbddd
am: e37873e835
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769266
Change-Id: I09e60dc8e4d0245d4bf61b714193063ff3f68dea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 18:50:49 +00:00
Colin Cross
27d86c3452
Merge "Don't pass -lrt or -lgcc_s to darwin rust compiles" into main am: ff4d5b40ca
am: 57a30b28df
am: b8e6f5facc
am: 7c33abadd2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2771124
Change-Id: I34b0ff3c68b6a20287ee314f7ffb8ce0ef3a8dc0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 18:50:06 +00:00
Treehugger Robot
c4fa542b36
Merge "Don't create withres-withoutdex files for R8" into main am: 31a5b2c1ef
am: c2c6d39f72
am: 0453c9526c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768496
Change-Id: I3cc2446a172be708fa6348927ee2a8fe0633874d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 18:19:00 +00:00
Treehugger Robot
e37873e835
Merge "Remove unnecessary flag for Kotlin compiles" into main am: c68afc4e9f
am: 1f02fc33a2
am: 742a8bbddd
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769266
Change-Id: I7f8b9dfc7996a73990307fa0fc9cab88f3a2d3e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 18:18:49 +00:00
Colin Cross
7c33abadd2
Merge "Don't pass -lrt or -lgcc_s to darwin rust compiles" into main am: ff4d5b40ca
am: 57a30b28df
am: b8e6f5facc
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2771124
Change-Id: Ifce1c2fe1caedd04f938c64ed2e118bb079dbc5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 18:18:06 +00:00
Anton Hansson
554b515eea
Merge "Support passing lint baseline to doclava" into main am: ddbfdb7f7e
am: dc99bafb1d
am: 88cf24b098
am: 1932d3a09e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769206
Change-Id: I0612ab8d6769e85432e989db29c8218c560b51a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 18:01:52 +00:00
Treehugger Robot
0453c9526c
Merge "Don't create withres-withoutdex files for R8" into main am: 31a5b2c1ef
am: c2c6d39f72
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768496
Change-Id: I5d0fda68c6ad33e70e6b26c8fa0b36e6607c08c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 17:48:14 +00:00
Treehugger Robot
742a8bbddd
Merge "Remove unnecessary flag for Kotlin compiles" into main am: c68afc4e9f
am: 1f02fc33a2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769266
Change-Id: Ic71072da968635e554f6c3713fe3f9316aa44285
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-04 17:48:06 +00:00