summaryrefslogtreecommitdiff
path: root/cc
AgeCommit message (Collapse)Author
2025-10-03soong: Add equivalent for LOCAL_EXPORT_CFLAGSbanksia-dev Alessandro Astone
Co-authored-by: Michael Bestas <mkbestas@lineageos.org> Change-Id: I1802648b3a624aacf699beccb710fbee40425f16
2025-03-21Merge "Clear as much of cc.Module as possible after GenerateBuildActions" ↵ Colin Cross
into main am: 07638f131e Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3552206 Change-Id: I29e063fdacdf56344c925177cfdf5f4c95fe6c2a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-21Merge "Clear as much of cc.Module as possible after GenerateBuildActions" ↵ Colin Cross
into main
2025-03-20Merge "Use provider to get outpath in getRequiredMemberOutputFile." into ↵ Yu Liu
main am: 7b86f8ff49 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3555023 Change-Id: Iaf1dcc5cf62fd052df18c484a1b35018ed8b8e02 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-20Use provider to get outpath in getRequiredMemberOutputFile. Yu Liu
Bug: 377723687 Test: Unit tests and compare the ninja and mk files generated. Change-Id: Iae0d301db244f9543e4da2d6bae01b3320e3a9e4
2025-03-20Merge "Make the fdo_profile configurable" into main am: 25f32d0a1e Yi Kong
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3550628 Change-Id: I620d2e65f923cc06bb8ad29c5e4b8d42c32cf886 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-19Make the fdo_profile configurable Yi Kong
Test: m nothing Bug: 404481956 Bug: 404706675 Change-Id: I424a0b26bf9b348e9b9c48027be78f5d445f1764
2025-03-19Clear as much of cc.Module as possible after GenerateBuildActions Colin Cross
Reduce peak memory usage by adding a CleanupAfterBuildActions method that is called at the end GenerateBuidlActions, nad use it to clear as much of cc.Module as possible. This is a temporary measure, eventually the entire module should be released by blueprint once all interactions are performed through providers. Test: all soong tests pass Change-Id: Idc3390ae4506ff2eef3231691e1de7446067961a
2025-03-18Merge "Don't call `getArguments` unnecessarily" into main am: ab3911674d am: ↵ Treehugger Robot
3a44dc510b Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3549479 Change-Id: Iff412623b7366408b8455fad34dafb8f582031a6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18Don't call `getArguments` unnecessarily Tamir Duberstein
Remove a second call to `getArguments` by reusing the value returned from the first call. That call was added in Ie6dd9b13711bae65f6fd6d1a5286307cd0cf2ad3 which neglected to perform this simplification. Change-Id: I2186db1fa3158886dc785557e977e7a25bfe4c72
2025-03-17Merge "Add support for ARMv9.3-A and ARMv9.4-A." into main am: b546854edb ↵ Krzysztof Kosiński
am: c4c0400729 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3547150 Change-Id: Ie1bdaa118d9cb326035d32ce496d6abe93b34e5f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-17Merge "Add support for ARMv9.3-A and ARMv9.4-A." into main Krzysztof Kosiński
2025-03-17Merge "Make object-size sanitizer on by default" into main am: 8b7a3b8087 ↵ Treehugger Robot
am: e8031786ce Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3544565 Change-Id: I78fa3e481cdd9cb07f745b6b0dd5dc6c2c41cbea Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-17Add support for ARMv9.3-A and ARMv9.4-A. Krzysztof Kosiński
Bug: 364383722 Test: presubmit, internal build with the new arch variant Change-Id: I151d7f5953cbec10e64887184a04d9121cde63e9
2025-03-17Make object-size sanitizer on by default Yi Kong
The RELEASE_BUILD_OBJECT_SIZE_SANITIZER flag is now ON on every branch. Clean up the flagging logic. Test: presubmit Change-Id: Ia4c25cef6baa1283f6c38a486d20ec91f084ac45
2025-03-14Merge "Change CommonModuleInfoProvider to a pointer." into main am: ↵ Yu Liu
f2aacebb28 am: 7909c860f9 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3542441 Change-Id: I447ba2da2c55857d035bd2f10e10c7cdef5f1c6e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-14Merge "Change CommonModuleInfoProvider to a pointer." into main Yu Liu
2025-03-14Merge "Use -march=armv9-a for Armv9-A arch variant" into main am: 208a9a2d52 ↵ Treehugger Robot
am: dbc9373df7 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2292699 Change-Id: Iae5bf67a5e09f15f0978ab86802d722616c7cae5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-14Use -march=armv9-a for Armv9-A arch variant Jake Weinstein
Additional context from krzysio@google.com in aosp/3544179: Currently, TARGET_ARCH_VARIANT := armv9-a actually uses armv8.2-a+dotprod, which seems to have been a workaround for toolchain issues that have since been fixed. Right now only one proto board uses this TARGET_ARCH_VARIANT internally, so it seems reasonable to correct this. Test: llvm-objdump -d Test: presubmit Change-Id: I99db407eb96d82d189378fd5abd4cc80ab802f20
2025-03-13Merge "_FORTIFY_SOURCE=3 for the host." into main am: 1ce5baaf57 am: 95972ec46e Elliott Hughes
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3539479 Change-Id: Ibfd2f84b7c358e916f32d733b35cf8ff447ab2aa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-13Merge "Use -target-feature for MTE" into main am: 766ebc3625 am: 57040f5cd7 Nick Kralevich
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3533466 Change-Id: Ieb59fbcb442b1e78ffeabf39743386412aff4cd7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-13Change CommonModuleInfoProvider to a pointer. Yu Liu
Bug: 358427516 Test: Manually verified genereated ninja and mk files, unit tests. Change-Id: I53a6dd718232735decbeb93febfd269dd9449e86
2025-03-13Merge "_FORTIFY_SOURCE=3 for the host." into main Elliott Hughes
2025-03-13Merge "Use -target-feature for MTE" into main Nick Kralevich
2025-03-13_FORTIFY_SOURCE=3 for the host. Elliott Hughes
musl has no fortify, and our ancient glibc only has level 2, but this is meaningful for bionic, and consistency of compiler flags seems like the least worst option. Bug: http://b/291762537 Change-Id: I779d64096cd089475e058b05ed01892bf72ccedb
2025-03-11Merge "Allow customizing stripping behavior with product variable" into main ↵ Treehugger Robot
am: 84ec3e012b am: 380aef1633 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3538037 Change-Id: Ic402445814207be7e13d591105217a120f547dac Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-11Merge "Allow customizing stripping behavior with product variable" into main Treehugger Robot
2025-03-11Merge "Expand TestSuiteInfoProvider to all test modules" into main am: ↵ Treehugger Robot
9697c5303c am: d7748c944f Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3537561 Change-Id: I813eeaee54a6157ae87c6cf8c285406892027be8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-11Allow customizing stripping behavior with product variable Cole Faust
aosp/3530072 made the default for host modules be to not strip them, but that increases the size of our build tools prebuilts. Add a flag that can be enabled on the build-tools build. Test: Manually Change-Id: I48173a52fe1a7068731ce0aca2367a0ebee0d068
2025-03-11Expand TestSuiteInfoProvider to all test modules Cole Faust
Test suites have been historically only defined in the AndroidMk functions. But in soong-only builds, we don't run AndroidMk. It appears Colin already started making a TestSuiteInfo provider, but hadn't set it on all test modules yet. Expand it to all the test modules, and add export it to make so that make can check that it matches LOCAL_COMPATIBILITY_SUITES. Bug: 388850000 Test: m nothing Change-Id: Iee8959742117604fd560c95be60f3cb7cf3d9ae4
2025-03-10Merge "Add `-pedantic` as an illegal flag" into main Aditya Kumar
2025-03-10Use -target-feature for MTE Nick Kralevich
Instead of setting -march, use clang's -target-feature functionality to enable MTE. Some projects set -march which may conflict with MTE's usage. Using -target-feature to enable MTE removes any clang command line ordering issues. History: * Originally submitted as 94d296d3d75428daceb03a55c01d77b4538d10ad * reverted in b77d695fa1a4a1691b00db2d5f59e8fc1ef368ab due to bug 371029823 * Prematurely resubmitted as 0feac37f1f21b135889758c4b866bba5de457838 and then subsequently reverted in 159860c848a709cac23ec7d448c6dfa6bfd8781b as the fix for bug 371029823 had not yet landed. * Reapplied as eba30c35f8564f46a36825e443b531b1df2b5a6e and subsequently reverted in 3f685cd5c3e87fee3aa2b1ff8ca51f1734b4f2c6 due to bug 399925046 (build timeout issue), which was resolved in bug 401292715 (re-client upgrade). Let's try again. 4th time's the charm. Bug: 366222162 Test: compiles and boots Change-Id: Ied4606b96cb2967af8edcbb4184981e09c807564
2025-03-10Merge "Rename CommonModuleInfoKey to be consistent with others." into main Yu Liu
2025-03-10Add `-pedantic` as an illegal flag Aditya Kumar
Ignore-AOSP-First: Make backporting easier. Bug: b/383382218 Change-Id: I3885de831e95aeeca2ca5c0f03434e26a05c6403
2025-03-10Merge "Convert singletonModuleSingletonAdaptor, rustdocSingleton, ↵ Yu Liu
sizesSingleton, movedToApexLlndkLibraries and allBuildFlagDeclarationsSingleton to use ModuleProxy." into main am: 3ff67e8a63 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3518152 Change-Id: If5b55e604c931b1737e8d85f3d27c128aa5a91c6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-10Merge "Merge 25Q1 (ab/BP1A.250305.020) to AOSP main" into main Xin Li
2025-03-10Merge "Convert singletonModuleSingletonAdaptor, rustdocSingleton, ↵ Yu Liu
sizesSingleton, movedToApexLlndkLibraries and allBuildFlagDeclarationsSingleton to use ModuleProxy." into main
2025-03-07Merge "Disable default strip for host variants" into main am: 4fe1a5bd33 Spandan Das
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3530072 Change-Id: I7b48ab10218b1e7d780599d5113f0db4028bff70 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-07Merge "Disable default strip for host variants" into main Spandan Das
2025-03-07Rename CommonModuleInfoKey to be consistent with others. Yu Liu
Bug: 377723687 Test: Unit tests and compare the ninja and mk files generated. Change-Id: I1ce8bc782666586633ded9cfaf1b9590e3c0efde
2025-03-07Convert singletonModuleSingletonAdaptor, rustdocSingleton, Yu Liu
sizesSingleton, movedToApexLlndkLibraries and allBuildFlagDeclarationsSingleton to use ModuleProxy. Bug: 377723687 Test: Unit tests and compare the ninja json and mk files generated. Change-Id: I90ea5599a55975b27e9ce6e91b20104849f5887f
2025-03-06Merge "Allow genrules to depend on tools with symlinks" into main am: 2e704899b0 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3529559 Change-Id: I3e74da9d48321d8990945d8ed5a1f8fad2e53689 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-06Merge "Allow genrules to depend on tools with symlinks" into main Treehugger Robot
2025-03-06Merge "llndk stub of libbinder_ndk reads systemapi annotation" into main am: ↵ Treehugger Robot
4001c291d8 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3527355 Change-Id: I6cb7f3cabc4c1794eca3c97caba74e313e5880ea Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-06Merge "llndk stub of libbinder_ndk reads systemapi annotation" into main Treehugger Robot
2025-03-06Merge "Skip install deps that is in "data" partition" into main am: 13342315b6 Yifeng Zeng
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3529475 Change-Id: I5eb73338707ee185c4c500f5d355331f1dcfc96f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-07Disable default strip for host variants Spandan Das
https://r.android.com/3460147 turned on strip by default for all host variants, including tests. Having debug symbols is useful for tests, so this CL makes no strip the default for all host variants. Bug: 401324986 Test: Verified locally that NeedsStrip returns false for all variants of the test reported in b/401324986 Change-Id: I493091eab17cea6a9e59277d06a4ff96ac898057
2025-03-06Allow genrules to depend on tools with symlinks Cole Faust
Symlink PackagingSpecs don't have a sourcePath, so it crashes soong if you try to add a tool with symlinks to a genrule. Make RuleBuilder ignore symlink packaging specs. We could make RuleBuilder add them to the sandbox later if needed. Bug: 395988167 Test: go test Change-Id: I4dd2bdec6ff6e94f5014889e4a9378ae4c20f9e3
2025-03-06Skip install deps that is in "data" partition Yifeng Zeng
when standalone_test is enabled, they are already installed Bug:352559760 Bug:392663036 Change-Id: I6e39eaf4fd8e050b555d4b3f610c502ea4dce560 Test: m bionic-unit-tests Test: m libunwindstack_unit_test
2025-03-06llndk stub of libbinder_ndk reads systemapi annotation Justin Yun
LLNDK libraries provide stable APIs to both product and vendor partitions. But we have an exception for libbinder_ndk because of the Treble boundary. libbinder_ndk provides different APIs between product and vendor partitions, because one is in the framework side, and the other is in the vendor side of the Treble boundary. libbinder_ndk used systemapi annotation for the product APIs instead of llndk annotation. Read the APIs with systemapi annotation to generate the product variant of the libbinder_ndk llndk stub library. Bug: 395576642 Test: m libbinder_ndk.product Change-Id: I66a5b023f0c482b4bbf1da281a88073d1ed4620f