Colin Cross
f1cc40e272
Relax cflag checks for -Xclang and -target*
...
Allow flags in cflags that start with "-target".
Allow "-Xclang <arg>" in cflags.
Bug: 350058746
Test: builds
Flag: EXEMPT bugfix
(cherry picked from https://android-review.googlesource.com/q/commit:7c4a40a2f611e049f15e69f59df9f6ec7aaf4565 )
Merged-In: I1bf64268047949d747f53d8b111fc26298aee958
Change-Id: I1bf64268047949d747f53d8b111fc26298aee958
2024-07-12 03:43:55 +00:00
Maciej Żenczykowski
256fb00278
Revert "Enable -Wfortify-source"
...
This reverts commit ca5e3eb407
.
Reason for revert: falcon and seahawk build failures on git_main.
(cherry picked from https://android-review.googlesource.com/q/commit:32e35e416ecc8c297ed761bcd1e6cdcc96a76ac6 )
Merged-In: Ib48e33dbb1649641223013739bb85934342a067a
Change-Id: Ib48e33dbb1649641223013739bb85934342a067a
2024-06-21 03:17:55 +00:00
Aditya Kumar
2ac2966a57
Enable -Wfortify-source am: ca5e3eb407
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3107458
Change-Id: I6477f33004ec494666cd948b33f04587c69fe788
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-16 19:03:48 +00:00
Aditya Kumar
ca5e3eb407
Enable -Wfortify-source
...
This reverts commit 885f2eec3c
.
Reason for revert: Fixed the error reported in post-submit
Change-Id: I152494403e6d6937413d0e5d2637d426c2f54009
2024-06-15 12:07:06 +00:00
Pirama Arumuga Nainar
d9e2ed44c1
Merge "Revert^4 "Enable full LTO optimization by default"" into main am: 52436e1574
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3016322
Change-Id: I32aee6e174f19687791aba4b83e058063986513e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-14 22:01:35 +00:00
Pirama Arumuga Nainar
52436e1574
Merge "Revert^4 "Enable full LTO optimization by default"" into main
2024-06-14 21:54:50 +00:00
Cole Faust
25c7781a5f
Merge "Remove debug/release cflags" into main am: 7dc42aa7af
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3131536
Change-Id: Ia36b210486ca3067d4875b2a152868d8c3e95d1a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-14 21:20:26 +00:00
Cole Faust
7dc42aa7af
Merge "Remove debug/release cflags" into main
2024-06-14 21:15:15 +00:00
Aleks Todorov
23c2f28987
Merge "cc: Make generated_headers configurable" into main am: 274b3c9521
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3131597
Change-Id: Ia025399a37421c347c263f0534e8c3462548810e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-14 17:29:59 +00:00
Aleks Todorov
274b3c9521
Merge "cc: Make generated_headers configurable" into main
2024-06-14 17:25:07 +00:00
Aleks Todorov
a6b0c47ed5
Merge "cc: Make cc_genrule defaultable" into main am: 36187c371e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3131758
Change-Id: I7483f90d69cec43463b1852e57b59be725b17be1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-14 17:23:34 +00:00
Aleks Todorov
36187c371e
Merge "cc: Make cc_genrule defaultable" into main
2024-06-14 17:17:17 +00:00
Aleks Todorov
93b6dd0036
cc: Make generated_headers configurable
...
Bug: 325444956
Test: m
Test: m [custom target with select() in generated_headers]
Change-Id: I95c9aa52be39e0f5afb503f0b71bce222961ec92
2024-06-14 16:56:38 +01:00
Treehugger Robot
523108c2f0
Merge "Add support for recent Mac SDK (13, 14)" into main am: 31934a55a8
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3106701
Change-Id: I5e003df9742b6d3cdb8d6b0118180bb8495ebcfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-14 09:59:08 +00:00
Treehugger Robot
31934a55a8
Merge "Add support for recent Mac SDK (13, 14)" into main
2024-06-14 09:57:23 +00:00
Treehugger Robot
d3ba5a3f6e
Merge "Cleanup ImageInterface.SetImageVariation" into main am: 77858402e4
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3131759
Change-Id: I4504623d0978356eb7f3b526d01ffb99abd0da12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-14 04:29:12 +00:00
Treehugger Robot
77858402e4
Merge "Cleanup ImageInterface.SetImageVariation" into main
2024-06-14 04:26:52 +00:00
Cole Faust
0f81d85278
Merge "Make the cflags property configurable" into main am: 1b0d92919d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3131289
Change-Id: I56760a2763d6d41d82696d0286085c95d09dfa8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-14 03:08:08 +00:00
Jihoon Kang
7583e835f7
Cleanup ImageInterface.SetImageVariation
...
This change modifies the interface method of
ImageInterface.SetImageVariation so that the image variation is set
directly at the caller image variation module, instead of passing the
pointer to set the image variation.
Test: m nothing
Change-Id: I8eadb5149365530243e19a8cd37eb49d335fbeef
2024-06-13 21:56:23 +00:00
Cole Faust
e96c16a806
Make the cflags property configurable
...
So that you can use select statements on it. The current modivation
is to convert a module from make to bp with minimal soong config
variable boilerplate.
Bug: 342006386
Bug: 346922064
Test: m nothing --no-skip-soong-tests
Change-Id: I48d5a11ad3aa65c24cc199458634a5fdbeab2f64
2024-06-13 14:51:14 -07:00
Cole Faust
5591460e81
Remove debug/release cflags
...
These were never fully implemented, release cflags are the same as
regular cflags, and debug cflags are not used at all.
Bug: 346922064
Test: Presubmits
Change-Id: I0e8914e03f3a092bbc816cabf75255c55c3531e4
2024-06-13 10:49:13 -07:00
Aleks Todorov
ec2cf1e580
cc: Make cc_genrule defaultable
...
Allows genrule_defaults to be used with cc_genrule.
This change does not create a cc_genrule_defaults, that can be done in a
follow-up change.
Bug: 325444956
Test: m [custom cc_genrule with defaults]
Change-Id: I9e2d26b31e04eb972801421d25b1ff6c8ef75369
2024-06-13 17:34:45 +01:00
Tomasz Wasilczyk
a5db0203c4
Merge "Enable cmake testing" into main am: ff18ea26f8
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3123791
Change-Id: Iffdb6bc3bf26d234b331f390a4a8fdccfaa126f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 15:56:09 +00:00
Sam Saccone
695908cf6d
Merge "Only generate kythe xrefs on the primary module" into main am: 6ace4cf906
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3126514
Change-Id: Id836a095e7f3c3f22fca1ed470b832da6677fb59
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:17:50 +00:00
Tomasz Wasilczyk
c3177e0ffc
Enable cmake testing
...
Bug: 302718225
Test: atest binder_sdk_test
Change-Id: Id841d73d11f3b0c75f7bcd523be8ff69300a503e
2024-06-11 13:36:20 -07:00
Sam Saccone
6ace4cf906
Merge "Only generate kythe xrefs on the primary module" into main
2024-06-11 20:23:38 +00:00
Cole Faust
9decf834ce
Only generate kythe xrefs on the primary module
...
Currently the kythe build is hitting the 6 hour timeout, but we're
generating kythe files for all variants. Generating them only for
the primary variant should drastically cut its runtime.
Bug: 345440993
Test: Presubmits
Change-Id: I3846b25c7f0bc22153e4f0a0cb81c5015854dd70
2024-06-11 11:50:47 -07:00
Zi Wang
05ae2e9d35
[conflict] Merge "PrebuildEtcModule no longer implements OutputFiles method" into main am: 3125b75d5d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3123797
Change-Id: I9acefd1def06cefc153514c766489b341fa86b2e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Ignore-AOSP-First: to resolve merge conflict
2024-06-11 18:18:14 +00:00
Zi Wang
3125b75d5d
Merge "PrebuildEtcModule no longer implements OutputFiles method" into main
2024-06-11 16:55:22 +00:00
Pirama Arumuga Nainar
b2fa85de8c
Merge "Revert^8 "Upgrade to clang-r522817"" into main am: 658bd0540e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3122593
Change-Id: Ib620d6f7dcaf6ceca09d5e554580b64020ba4d03
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 16:27:21 +00:00
Tomasz Wasilczyk
273ee50904
Merge "cc_cmake_snapshot: fix cc_test and cc_benchmark" into main am: e07a19bc63
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3107165
Change-Id: I67ae035ef0f008bd5211f6d53543dfb3ab175b3c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 16:26:59 +00:00
Pirama Arumuga Nainar
658bd0540e
Merge "Revert^8 "Upgrade to clang-r522817"" into main
2024-06-11 16:25:58 +00:00
Tomasz Wasilczyk
e07a19bc63
Merge "cc_cmake_snapshot: fix cc_test and cc_benchmark" into main
2024-06-11 16:04:36 +00:00
Aleks Todorov
02de5bbcdb
Merge "cc: Make export_include_dirs configurable" into main am: ef0024775f
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3121811
Change-Id: Ib96a58e5b518dfbce6697a9b04de8262dceb3c2b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 10:11:19 +00:00
Aleks Todorov
ef0024775f
Merge "cc: Make export_include_dirs configurable" into main
2024-06-11 09:09:30 +00:00
Yi Kong
cf31e84a70
Merge changes from topic "optimize_for_size" into main am: cdb8501c1e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3117077
Change-Id: Iae0bf8dac76fcf99171d08e5ac4279c0ddb16586
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 06:11:15 +00:00
Yi Kong
80064849a9
Add "Optimize_for_size" build property am: 5786f5cf1d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3104777
Change-Id: Ieab64511ca45501f0d3798ec66f3a0ec2a7922e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 06:11:11 +00:00
Yi Kong
cdb8501c1e
Merge changes from topic "optimize_for_size" into main
...
* changes:
Enable MLGO inliner optimization for optimize_for_size cases
Add "Optimize_for_size" build property
2024-06-11 05:38:13 +00:00
Kiyoung Kim
d605f683ef
Merge "Remove VNDK related code from Soong" into aosp-main-future
2024-06-11 00:28:41 +00:00
mrziwang
e2346b87d9
PrebuildEtcModule no longer implements OutputFiles method
...
In the context of incremental soong, the output files
inter-module-communication will be through OutputFilesProvider.
The OutputFileProducer interface will be deprecated.
These module types are included in this change:
linker_config
llndk_libraries_txt
sanitizer_libraries_txt
java_sdk_library_xml
vndksp_libraries_txt
vndkcore_libraries_txt
vndkprivate_libraries_txt
vndkpublic_libraries_txt
Test: CI
Bug: 339477385
Change-Id: I35575bbad137df5ff8001db9a61ba5b3d13eaa6d
2024-06-10 15:17:07 -07:00
Frederick Mayle
ce1fafd6e8
Merge "allow arch_variants for C++'s rtti option" into main am: 61d180ac27
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3120062
Change-Id: Ic1e9448bc71aec8fc92741b0720f3dd7346642df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 20:31:01 +00:00
Chris Wailes
ffebc5b71f
Revert^8 "Upgrade to clang-r522817"
...
This reverts commit 8c27af2136
.
Reason for revert: Re-land the Rust 1.78.0 and Clang r522817 updates
Change-Id: Id1fe3790c9688f2c204ca26b5638e1a245cc65f4
2024-06-10 18:06:52 +00:00
Aleks Todorov
c9becde031
cc: Make export_include_dirs configurable
...
Bug: 325444956
Test: m
Test: m [custom cc_library_headers with select]
Change-Id: Iebd66bb3f322276ff0f16dc7765257ea309b081f
2024-06-10 18:37:22 +01:00
Frederick Mayle
7833af17f9
allow arch_variants for C++'s rtti option
...
Currently, the RTTI setting is ignored for host builds, but we want to
change that. As a prereq, we need a way to explicitly enable/disable it
for host builds.
Bug: 341341056
Test: m
Change-Id: Ie503218181cec4f4ef70063caaa4832f748a8eb5
2024-06-07 16:06:46 -07:00
Dmitrii Ishcheikin
8dc9c8028f
Revert^7 "Upgrade to clang-r522817" am: 8c27af2136
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3119653
Change-Id: I96caa5de0b1981e727c739fa2de9cc5906e5630a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-07 14:06:39 +00:00
Dmitrii Ishcheikin
8c27af2136
Revert^7 "Upgrade to clang-r522817"
...
36c6af6bd2
Change-Id: Id3320a7862f1ebbfe49bfa4caa36e7ccfd515524
2024-06-07 13:06:19 +00:00
Yi Kong
df0289bfbd
Revert^4 "Enable full LTO optimization by default"
...
97f68587ff
Change-Id: I722e046ed23874a75f407d3d211124251b652aae
2024-06-07 09:55:37 +00:00
Chris Wailes
ba241b58c1
Merge "Revert^6 "Upgrade to clang-r522817"" into main am: 86cbd9e46d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3112925
Change-Id: I736546eb7f971c60a7b177af13ea9f618257b340
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-07 03:47:03 +00:00
Chris Wailes
86cbd9e46d
Merge "Revert^6 "Upgrade to clang-r522817"" into main
2024-06-07 03:31:39 +00:00
Yi Kong
2cd77d671c
Enable MLGO inliner optimization for optimize_for_size cases
...
This helps reduce binary size for these projects by ~3%.
Test: presubmit
Bug: 342090838
Change-Id: Ie1e0586ddf5f40aa1e81fc2628a6499093de9699
2024-06-06 15:01:59 +09:00