Commit Graph

5393 Commits

Author SHA1 Message Date
Colin Cross
9b564c5a22 Merge "Fix mismatch between cc and python for windows prefer32" 2021-01-22 23:34:00 +00:00
Dan Willemsen
da37007955 Merge "Add Mac 11.1 SDK to the allowlist" am: ba680de96e am: 21a794a0d8 am: 332fd96a00
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1556740

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib511f0fbd3b5f38ce9f00bb489919cfcc12b045e
2021-01-22 21:28:40 +00:00
Dan Willemsen
ba680de96e Merge "Add Mac 11.1 SDK to the allowlist" 2021-01-22 19:05:09 +00:00
Colin Cross
1f2f4eb07d Revert "Revert "Truncate vendor snapshot header glob list after filtering it""
This reverts commit 758140ceae.

Reason for revert: modifying glob results no longer corrupts cache after aosp/1557261

Change-Id: Id94f1f5835a93e83dc9f465627913b91908d3560
2021-01-22 18:06:57 +00:00
Colin Cross
ec118d0734 Revert "Revert "Speed up vendor snapshot header globs""
This reverts commit c2aff9e9fd.

Reason for revert: modifying glob results no longer corrupts cache after aosp/1557261

Change-Id: I682b92ad08c82ac4fa5482497cb587bd0223d21b
2021-01-22 18:05:59 +00:00
Jeongik Cha
f5c418cedf Update VndkMustUseVendorVariantList
As AIDL version rule is changed, change VNDK list accordingly.
'unstable' and non-versioned aidl module will be cleaned up

Bug: 150578172
Test: m
Change-Id: I3e82b2c01f1fca75ac97985053b4a5826d151340
2021-01-22 20:32:02 +09:00
ChengYou Ho
262adc3e41 Create Weaver aidl interface am: 4b197e110b am: 1ba735ada4 am: 56a957fa9a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1554279

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I85131d81820b53a852633ec758510a580503bcf1
2021-01-22 07:44:07 +00:00
ChengYou Ho
4b197e110b Create Weaver aidl interface
Bug: 176107318
Change-Id: Ia4b628edf1ef51c71af7078818c0adf2a4183d03
2021-01-22 06:34:22 +00:00
Daniel Cardenas
915ee01fef Merge changes from topic "revert_vendor" am: 3e2760a539 am: 7868fe0c6f am: f1d2946eaa
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1556737

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2c3629d513298a21f25335d203964c8a2cac3222
2021-01-22 06:01:46 +00:00
Yabin Cui
5e3d82ebdb Switch to clang-r407598b (12.0.2).
Bug: 178106097
Test: build.
Change-Id: I1ce256547fc395a6b440950b4c88f7fe777c86ee
2021-01-21 21:30:45 -08:00
Daniel Cardenas
3e2760a539 Merge changes from topic "revert_vendor"
* changes:
  Revert "Speed up vendor snapshot header globs"
  Revert "Truncate vendor snapshot header glob list after filtering it"
2021-01-22 05:12:51 +00:00
Christopher Di Bella
81bc3b130d Merge "adds new warnings to Android build (1/2)" am: 490b9d7931 am: 3cab1ce6f5 am: d19b58ada9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1497076

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6159e650973c49c6b768a109e32ac6f2199fe967
2021-01-21 23:55:11 +00:00
Evgenii Stepanov
e0ea5943fc Merge "Support memtag_heap in SANITIZE_TARGET_DIAG, fix cc_test interation." am: 298bafdde9 am: d1926575a7 am: f22bbf2d8c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1550323

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5922cb4bdc7e722992ca7c435abff4255d13f330
2021-01-21 23:53:35 +00:00
Dan Willemsen
5191b00369 Add Mac 11.1 SDK to the allowlist
Historically we've only had to add one major release a year to the Mac
SDK allowlist, but this year the versioning scheme changed and 11.1 is a
minor update to 11 (instead of 10.x.1 like in years past). Unfortunately
the Xcode tools don't let you just specify '11' like they did with
'10.x', so this is more complicated to fix in a scalable way.

Test: build with xcode 12.3 and macOS SDK 11.1
Change-Id: I2e88e9289727261389a863e7147a0b146ec5148a
2021-01-21 14:56:39 -08:00
Christopher Di Bella
490b9d7931 Merge "adds new warnings to Android build (1/2)" 2021-01-21 22:24:51 +00:00
Evgenii Stepanov
298bafdde9 Merge "Support memtag_heap in SANITIZE_TARGET_DIAG, fix cc_test interation." 2021-01-21 20:32:19 +00:00
Sally Yuen
c2aff9e9fd Revert "Speed up vendor snapshot header globs"
This reverts commit 0f93e5b9fb.

Reason for revert: causing extra soong regenerations

Change-Id: I4ed2e5c82dfe3e99fbb9590b80f92c79a27e8025
2021-01-21 20:17:33 +00:00
Sally Yuen
758140ceae Revert "Truncate vendor snapshot header glob list after filtering it"
This reverts commit 3a62a9cc2b.

Reason for revert:  causing extra soong regenerations

Change-Id: I4ceb5334634613a00ac9c312b75c623a8aced8ab
2021-01-21 20:17:07 +00:00
Jiyong Park
942c119b14 Merge changes from topic "future_symbol" am: 1de5a578d2 am: 27d194c793 am: 9e6596f3ed
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1425589

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic0c73002351347ad25c2ef23885743cfa457ce61
2021-01-21 18:55:24 +00:00
Christopher Di Bella
23a991c04e adds new warnings to Android build (1/2)
The following warnings have been turned on, and turned on as errors:

-Wbool-operation
-Wimplicit-int-float-conversion
-Wint-in-bool-context
-Wstring-compare
-Wstring-plus-int
-Wxor-used-as-pow

Test: no extra tests necessary

Change-Id: Ic8ab26de9e5323e9b81ad79eef787abfb264848c
2021-01-21 17:53:42 +00:00
Jiyong Park
1de5a578d2 Merge changes from topic "future_symbol"
* changes:
  API availability should be checked using __builtin_available
  __ANDROID_API__ tracks min_sdk_version
2021-01-21 16:33:05 +00:00
Inseob Kim
0c9e1d388d Merge "Truncate vendor snapshot header glob list after filtering it" am: ec7cab81f9 am: 249609366d am: cb6d9b1d29
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1555161

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie569526241f5e1b59caa3505422f34e45bfeb0b0
2021-01-21 07:56:04 +00:00
Inseob Kim
c98399e60f Merge "Speed up vendor snapshot header globs" am: ab15f9644b am: 9a7f405bc9 am: ee3791b9f4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1554550

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I76b8036af1266c565e0ad79c59c6094dc9877f2a
2021-01-21 02:10:42 +00:00
Colin Cross
3a62a9cc2b Truncate vendor snapshot header glob list after filtering it
Test: m checkbuild
Change-Id: I4847bff5c03844194a9a80e8cb24a60694db6208
2021-01-21 00:46:46 +00:00
Evgenii Stepanov
04896cae35 Support memtag_heap in SANITIZE_TARGET_DIAG, fix cc_test interation.
cc_test without sanitize:memtag_heap acts as if it has implicit
sanitize{memtag_heap:true, diag:{memtag_heap:true}}. This is unaffected
by SANITIZE_TARGET.

Refactor the test to cover all permutations.

Change memtag include lists to act similar to SANITIZE_TARGET_DIAG: the
the sync include list upgrades async targets to sync, unless diag is
explicitly set to false in the target definition.

Bug: b/135772972
Test: cc_test.go

Change-Id: I6a969f2f5804cd5f47fc4e93a20e3b99ea5fa111
2021-01-20 22:27:45 +00:00
Colin Cross
217f7b33c4 Merge "Don't create SDK variants for native bridge modules" am: bdeafb93fd am: f5cd3722cf am: 5459575558
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1553881

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iacbd8783289feed7aa810da0f0c7635067e73863
2021-01-20 19:46:58 +00:00
Colin Cross
0f93e5b9fb Speed up vendor snapshot header globs
The vendor snapshot header globs were repeated 9 times, once for each
possible header suffix.  Globbing is not a fast operation, so this
took 9.68s of CPU time in my AOSP builds.  Replace it instead with a
single glob, followed by filtering down to the desired header
extensions.

Test: m checkbuild
Change-Id: I9c8f8cdad8cbffc0a42217659a48dd9d676e4e4c
2021-01-20 18:36:25 +00:00
Colin Cross
08117deab4 Fix mismatch between cc and python for windows prefer32
Windows prefer32 was implemented in cc, which caused a mismatch
between cc and other packages like python.  This manifested as
missing variant when a python_test_host with compile_multilib: "first"
tried to depend on a cc_binary_host, which implicitly has multilib
"first".

Fixes: 177904375
Test: m checkbuild
Change-Id: Iaaac16ae171c06d90d04d7cac11789d3f39b8d99
2021-01-20 10:26:00 -08:00
Cindy Zhou
0ae13ec307 Merge "Build against cfi supported coverage lib" 2021-01-20 18:08:30 +00:00
Colin Cross
bdeafb93fd Merge "Don't create SDK variants for native bridge modules" 2021-01-20 17:49:36 +00:00
Chih-Hung Hsieh
9170f0f2c4 Add clang-analyzer check if selected. am: 04f8d379e6 am: 6b6b7353f8 am: dee5011892
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1554894

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaa5585831e6b61a6d62d2e37b8383e3ea7b100de
2021-01-20 08:46:41 +00:00
Chih-Hung Hsieh
04f8d379e6 Add clang-analyzer check if selected.
* WITH_TIDY=1 should not include clang-analyzer-* checks
  because they are too slow.
* Nightly builds will use both WITH_TIDY=1 and
  CLANG_ANALYZER_CHECKS=1.

Bug: 173736193
Test: make with WITH_TIDY=1 and CLANG_ANALYZER_CHECKS=1
Change-Id: I3885fd0e20475ceee5e3798bffc11a61994ac113
2021-01-19 19:21:39 -08:00
Inseob Kim
7577c1eb1c Merge "Implement directed vendor snapshot" am: 9bd66d1537 am: bc657cb78a am: dcebff8f67
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1541208

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1c4870fa350bfe767019a0103d619b9e01c20c87
2021-01-20 02:16:15 +00:00
Inseob Kim
6a993709d4 Merge "Refine sysprop_library header rules" am: 4c4de0edc3 am: 1ee0c0c4ba am: b904808ac6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1553459

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifcd813e9ae13863a4a5118130da416c30b6ef62c
2021-01-20 02:16:09 +00:00
Ryan Prichard
6761a5eeae Merge "Switch platform EH unwinder to prebuilt LLVM libunwind" am: 809eac3057 am: 048809c624 am: 471dfd6809
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1551580

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I93276241d217b7d2ebdffa58abb60d2d0721c672
2021-01-20 02:15:55 +00:00
Inseob Kim
9bd66d1537 Merge "Implement directed vendor snapshot" 2021-01-20 01:17:25 +00:00
Inseob Kim
4c4de0edc3 Merge "Refine sysprop_library header rules" 2021-01-20 01:17:22 +00:00
Ryan Prichard
809eac3057 Merge "Switch platform EH unwinder to prebuilt LLVM libunwind" 2021-01-20 00:10:59 +00:00
Colin Cross
94e347e6a5 Don't create SDK variants for native bridge modules
Native bridge modules never need to build against NDK stubs, so
don't create SDK variants.  Also clear the sdk_version property
for modules that don't have SDK variants so that later code doesn't
use it to trigger SDK behaviors.

Test: m checkbuild
Change-Id: I1920fa82e9fab06235f01a62624382efa16cc6e3
2021-01-19 15:00:45 -08:00
Inseob Kim
7cf1465d2e Implement directed vendor snapshot
Vendors can now generate only needed modules by setting the following
Makefile variables:

- DIRECTED_VENDOR_SNAPSHOT: set to true
- VENDOR_SNAPSHOT_MODULES: list of snapshot candidates

e.g.

DIRECTED_VENDOR_SNAPSHOT := true
VENDOR_SNAPSHOT_MODULES := toybox_vendor sh_vendor libbase libcutils ...

Bug: 157967325
Test: m dist vendor-snapshot after setting those in BoardConfig.mk
Change-Id: I6515a43d9358d94483d7c7fa2b066f9dd457f6aa
2021-01-18 20:08:09 +09:00
Inseob Kim
0641004a3f Refine sysprop_library header rules
Instead of unreliable giant if clause, it's enough to check dependency
between platform (system, system-ext), product, and vendor.

Test: sysprop_test soong test
Test: link against host_supported sysprop_library and use internal props
Change-Id: I7bd5df00b302fa261eff5120106aacc3df93c1b2
2021-01-18 15:23:28 +09:00
Chih-Hung Hsieh
40891da084 Do not enable all clang-analyzer-* checks, am: 4d31a041c7 am: 1bf2e3f449 am: a8e4121466
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1553374

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7ad24a1cd9c755dcfda34319dece88bfe3ae9a74
2021-01-16 10:18:29 +00:00
Chih-Hung Hsieh
4d31a041c7 Do not enable all clang-analyzer-* checks,
* clang-analyzer is slow and enables clang-diagnostic-padded,
  which cannot be suppressed yet.

Test: make with WITH_TIDY=1 for crosshatch-userdebug
Change-Id: I20193f0db3154b037d58c5ca012a9e753b176722
2021-01-15 21:10:35 -08:00
Treehugger Robot
6b15f92d95 Merge "add more global default checks" am: 9235fea8c3 am: 52693cd46a am: a979a9bae7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1551578

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8539b9e02317bbacfcd4d2660947b99a92099d89
2021-01-16 01:55:08 +00:00
Treehugger Robot
5655f13aeb Merge "WITH_TIDY=1 implies -warnings-as-errors=-*" am: 2207565b43 am: b42947cba0 am: 1f367ef490
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1551577

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8bd5167d67b5db463873b47bf063af24d223747a
2021-01-16 01:54:30 +00:00
Chih-Hung Hsieh
34850d350e add more global default checks
Test: make with and without WITH_TIDY=1
Change-Id: Iee07707158f7204e961970ba4d518403b3b2aaf3
2021-01-15 14:31:13 -08:00
Chih-Hung Hsieh
1b4934a215 WITH_TIDY=1 implies -warnings-as-errors=-*
* This allows local projects to enable clang-tidy
  and catch errors in a default build, but allows
  all warnings in a global build with WITH_TIDY=1.

Test: make with WITH_TIDY=1
Change-Id: I92a10af24b23ee9f04eebb0513e8f611dd7dcf59
2021-01-15 14:17:39 -08:00
Treehugger Robot
b0d869e24f Merge "Adjust the double loadable check" am: b47dcf7f0d am: fc76f2cb9d am: 91cf763bfd
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1550398

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8d1e29a14d7f694eafcdfe1d97158c8edde92411
2021-01-15 14:09:21 +00:00
Chris Li
5e13c08b9f Revert "To use same default for the nightly builds." am: 46cad069d1 am: 61316dbda6 am: ff8118fe9d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1549528

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I26754f095e1016bf30b27f8a1308ed36a8e42ecc
2021-01-15 14:08:20 +00:00
Colin Cross
da0330646b Merge "Remove global state from VNDK" am: 6c0a9f69e9 am: 6b937be368 am: 4e96d84d64
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1542205

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I013b68f54adae6f9ad45e87320ce9ec7477f95d9
2021-01-15 14:04:07 +00:00