Commit Graph

72 Commits

Author SHA1 Message Date
Treehugger Robot
c5192cb91b Merge "Revert "Turn on LTO for libc++.so"" am: d3d779a3ff am: bc7c3e730b am: 8255ce101f
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2644890

Change-Id: I7d9f53aac944a69cf99df82ea716c20f2e890a8b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-01 00:52:58 +00:00
Cole Faust
f40ed346e1 Revert "Turn on LTO for libc++.so"
This reverts commit 51a6acef39.

Reason for revert: breaks soong_integration-clean: https://android-build.corp.google.com/build_explorer/branch_dashboard/aosp-master-bazel/build_id/10381995/?activeTarget=bp2build-incremental

Change-Id: I3974db37b32a86374e6309734decb169daa63c2e
2023-06-28 18:23:44 +00:00
Treehugger Robot
517c70c1d0 Merge "Turn on LTO for libc++.so" am: 0860713e9e am: 8be550233c am: c29582f711
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2623791

Change-Id: Id73d5ad9a86e18601b6c328d48abb86a94402df6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-26 13:07:23 +00:00
Yi Kong
51a6acef39 Turn on LTO for libc++.so
For arm64-userdebug, binary size increased from 725KB to 748KB (3.1%).

Test: presubmit
Change-Id: I0277dbe93ee20e91619d255d71fcd75933faa24c
2023-06-13 06:23:18 +00:00
Yabin Cui
f0f3731891 Remove test for -fcoroutines-ts am: 4b737c774c am: ee86e3b189 am: f64785da5e
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2620093

Change-Id: I4ba4f2c7c3c20f2cad6f5879d54bbcec19fa27d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-09 23:25:22 +00:00
Yabin Cui
4b737c774c Remove test for -fcoroutines-ts
After clang update, we got the below error:
  external/libcxx/libcxx_test_template.cpp
  clang++: error: unknown argument: '-fcoroutines-ts'

Since this option has been removed in clang, remove test for it.

Bug: 280683256
Test: build with clang-r498229
Change-Id: Icecd7152f8d724d680bf17e3f920f15365b285a6
2023-06-08 18:09:17 +00:00
Yi Kong
642f71a2a0 Merge "Revert^2 "Suppress -fcoroutines-ts deprecation warning"" am: b9102ea04f am: fbd7a55d7c am: 6d49a08e24
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2469785

Change-Id: Iee71c15c4a712166f66091f5dc87f9eae2dfa65c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 14:43:13 +00:00
Yi Kong
cc74b96887 Revert^2 "Suppress -fcoroutines-ts deprecation warning"
fe9066ae4e

Change-Id: I845142c0f27d0c830304a6e2b061e3e390c45254
2023-03-06 08:04:32 +00:00
Helen Qin
65fb4bc230 Revert "Suppress -fcoroutines-ts deprecation warning" am: fe9066ae4e am: e74e33a93b am: f3bc72a0f1
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2464734

Change-Id: I7735f8db5c189c5991afbaa2303849290bbff633
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 11:06:45 +00:00
Helen Qin
fe9066ae4e Revert "Suppress -fcoroutines-ts deprecation warning"
Revert submission 2446165-update-clang-r487747

Reason for revert: DroidMonitor-triggered revert due to breakage bug b/271252582 and b/271243811

Reverted changes: /q/submissionid:2446165-update-clang-r487747

Bug: 271252582
Bug: 271243811
Change-Id: Ib2f5cafe2bcb0375bfd4a7933419995a6737b86e
2023-03-01 19:34:25 +00:00
Yi Kong
d3266e2b09 Suppress -fcoroutines-ts deprecation warning am: 19461d9be8 am: 7d877c5895 am: bd59b2b65e
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2446165

Change-Id: I9284826b1861b351bde645984b5b70100baac796
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-01 06:32:53 +00:00
Yi Kong
19461d9be8 Suppress -fcoroutines-ts deprecation warning
Starting from clang-r487747, clang emits the following warning:
  clang++: error: the '-fcoroutines-ts' flag is deprecated and it will be removed in Clang 17; use '-std=c++20' or higher to use standard C++ coroutines instead [-Werror,-Wdeprecated-experimental-coroutine]

Test: presubmit
Change-Id: Ib0082dee2e7d3f16dc8c23b757c90ede9f229cb4
2023-02-21 17:39:08 +09:00
Colin Cross
a33c028be4 Build sdk variants of libc++ for riscv64 am: 69c72cf1ae am: b44510800b am: bb40acda2b
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2404996

Change-Id: I3101bbbfd5310cb2d2058663ad0bfcb06d678366
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-06 23:01:01 +00:00
Colin Cross
69c72cf1ae Build sdk variants of libc++ for riscv64
There is no prebuilt libc++ for riscv64 provided by the NDK, build
it using the platform sources instead.

Test: lunch aosp_riscv64-userdebug && m -k
bbg

Change-Id: I3e443925549d04edebc9adc56116c5254dbf4307
2023-01-26 14:06:41 -08:00
Krzysztof Kosiński
c675c233cd Remove Python 2 "test" that doesn't test anything. am: b37855cd3b am: 984419b6bb am: b63afef493 am: f6413af19b am: 28954ab7fc
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2219911

Change-Id: I0246807b64876dd8a3204b51a349f94a116af052
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 02:26:42 +00:00
Krzysztof Kosiński
b37855cd3b Remove Python 2 "test" that doesn't test anything.
This file appears to be related to testing, but it's not actually
a test (executing it doesn't run any tests) and it's otherwise
unused.

Bug: 245854393
Test: presubmit
Change-Id: Ie0e21e0789c5481256ddb8caa278fc709dd3bff9
2022-09-18 01:38:52 +00:00
William Escande
5355fe82c1 [Bluetooth apex] Use new apex name am: fe75d5e6eb am: 11e51a94cc am: 415c626764 am: 57a4d02192 am: 13fdb144c1
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2192235

Change-Id: I221de82b9485c1a5930ca4c327458659b6261ccc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 22:57:07 +00:00
William Escande
fe75d5e6eb [Bluetooth apex] Use new apex name
The Bluetooth apex name is now called com.android.btservices

Bug: 243054261
Test: Build
Change-Id: I1e12d9f88c7b8815796a2e0b6e1107b52129f573
2022-08-22 11:27:54 -07:00
Xin Li
1159fc89d9 Merge tm-dev-plus-aosp-without-vendor@8763363
Bug: 236760014
Merged-In: I230be7dd8d657679c2b33c6324f3b525a98d1e2d
Change-Id: I01e0334dd104b9e64c72981dd5e846b9ae5cc0d1
2022-06-27 23:38:25 +00:00
Yi Kong
d8d6fc5dde Opt host darwin libcxx out of LLD am: bf9a0bcb47 am: 7063e2d08e am: 310dd26fb1 am: a914d12270 am: d540107bd1
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2133262

Change-Id: Ib0511be4b72f0a11f23ab097320e3bd71b156bff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-25 03:13:37 +00:00
Yi Kong
310dd26fb1 Opt host darwin libcxx out of LLD am: bf9a0bcb47 am: 7063e2d08e
Original change: https://android-review.googlesource.com/c/platform/external/libcxx/+/2133262

Change-Id: I7f0f57e3fc06d0b4634f071aa6dd49a4f79e1745
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-25 02:08:10 +00:00
Yi Kong
bf9a0bcb47 Opt host darwin libcxx out of LLD
LLD does not implement force_symbols_weak_list or
force_symbols_not_weak_list. Fallback to ld64.

Test: presubmit
Bug: 236924555
Change-Id: I90acaf3f562993cde6da2d2d8cc75cc18cbfc88a
2022-06-24 21:43:22 +08:00
William Escande
a25ab15aa6 Move user file along to the new package name am: 578c0d3186 am: edd250a3d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/libcxx/+/19037861

Change-Id: Ic3309b03a80f59e25e3fe4f3ae9435749436ceae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 23:46:45 +00:00
William Escande
578c0d3186 Move user file along to the new package name
Repro step:
* Flash old build
* Pair device
* Change it's metadata:
   * Change connection_policy
   * Change Volume
   * Change phone_access
* build and flash without wipe
* observe device metadata

Test: Repro step above
Bug: 234063703
Ignore-AOSP-First: will be picked later
Change-Id: I230be7dd8d657679c2b33c6324f3b525a98d1e2d
2022-06-22 14:01:10 -07:00
Hsin-Yi Chen
ddcf30d384 RESTRICT AUTOMERGE Ignore weak symbol difference in libc++ ABI check
The diff_flags make the ABI checker ignore the weak symbol difference
caused by PGO.

Test: make libc++.vendor
Bug: 230076879
Change-Id: Ifff053fd9a1411cbe73ab48359ffa6f49bec4490
2022-05-26 04:38:02 +00:00
Colin Cross
bdf5fe7af5 Export libc++ headers for musl sysroot
Export the libc++ headers for inclusion in the musl sysroot so that
the clang runtimes can link against them.

Bug: 215802826
Test: musl llvm build
Change-Id: Ia661da7ad7158e09b3e956ab93159e3e42855424
2022-02-25 18:30:07 -08:00
Yi Kong
df8cb36848 Move pgo rules to afdo
Test: presubmit
Change-Id: Ic590208e2163e7703c3493dbe435cbe2ac7cce33
2022-01-06 16:04:07 +08:00
Jiakai Zhang
978cfa2e7a Allow the ART module to use "libc++fs".
This is used by odrefresh, which needs to do many filesystem
operations. It is only used as a static library.

Bug: 205276874
Test: m nothing
Change-Id: Id4cd9e2674d32b48ab82d88ac3acb93d37ca8627
2021-11-12 16:53:21 +00:00
Dan Albert
911760b18e Add another warning to the libc++ Android.bp.
Test: submit and wait for decrease in IMs
Bug: None
Change-Id: Icf56e0d6394f0b82db865225119c8c476b698605
2021-08-20 13:54:03 -07:00
Elliott Hughes
bb48d640b3 Update the bug that's blocking libc++fs for vendor code.
We're still working on it, but having a bug that's already been closed
in the comment makes it look like this is actually ready.

Bug: http://b/175635923
Test: N/A
Change-Id: Ied229bc423fc4550d2e235acd45ebc38d7dcd507
2021-08-11 11:53:45 -07:00
Inseob Kim
e8660a008b Add ramdisk_available to init_first_stage's deps
Bug: 187196593
Test: boot
Change-Id: I8bdb8dda3417aa0ab01f22c4103a9d2e52baf529
2021-06-14 11:56:55 +09:00
Yi Kong
c74f1b6bac PGO for libc++
This improves app launch time by 0.76%.

Test: presubmit
Bug: 181102883
Bug: 175205560
Change-Id: Ic541e376d3c907c6d896621e5afedba8e1045f88
2021-02-24 18:11:18 +08:00
Bob Badour
e120486753 [LSC] Add LOCAL_LICENSE_KINDS to external/libcxx
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-MIT SPDX-license-identifier-NCSA
to:
  Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I36daefefdf3ea2b62cdb56e2ac13a810091d5283
2021-02-12 21:15:54 -08:00
Justin Yun
8b6fee83e3 Add "product_available" to product available modules
"vendor_available" modules were available to product modules.
However, not all "vendor_available" modules are required to be
available to product modules. Some modules want to be available only
to product modules but not vendor modules.

To cover the requirement, we separate "product_available" from
"vendor_available".
"vendor_available" will not provide product available module.

Bug: 150902910
Test: build
Change-Id: I8e85af2a4e33836092816d38d9bbd7b43dd87d77
2020-11-11 16:25:19 +09:00
Yifan Hong
ffa20c359b Merge "Make vendor_ramdisk_available." 2020-10-29 17:17:28 +00:00
Yifan Hong
6086566122 Make vendor_ramdisk_available.
Test: pass
Bug: 156098440
Change-Id: Ibaded847b1d92eb6de8dd3aa31c8dc54bfb28de7
2020-10-21 18:42:26 -07:00
Pirama Arumuga Nainar
9057c2f748 Do not set -fsjlj-exceptions locally for Windows
Bug: http://b/116784799

This is set globally for all 32-bit Windows compilations in build/soong.

Test: go/android-llvm-windows-testing
Change-Id: I0ff6c21942929e92f790ee7dbcfad00309a7aec6
2020-09-09 17:53:06 -07:00
Jooyung Han
f65f67c622 Set min_sdk_version to be part of mainline modules
Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.

"apex_inherit" is a special alias to represent "the minimum of all
that the apexes require".

For now setting min_sdk_version doesn't change build outputs.
But build-time checks will be added soon.

Bug: 152655956
Test: m
Change-Id: I23cb55a3a17ac242e7f599fe574ca30074b43506
2020-05-02 02:20:32 +09:00
Dan Albert
eda4e913a5 Note about why this isn't vendor_available.
Test: None
Bug: None
Change-Id: I0c37a344dfb542000424615dfbead3ff7eab8aab
2020-04-13 12:08:37 -07:00
Jiyong Park
2d6d9ab848 Set apex_available property
The marked library(ies) were available to the APEXes via the hand-written
whitelist in build/soong/apex/apex.go. Trying to remove the whitelist
by adding apex_available property to the Android.bp of the libraries.

Bug: 150999716
Test: m
Change-Id: I60e1ae6fa837772c2682d4a26ea34bd80e69bc9e
2020-03-07 17:44:01 +09:00
Yifan Hong
5488d3c961 Make ramdisk_available.
Test: pass
Bug: 147347110
Change-Id: If00a2f7c12100c76c25da4501ae40fa02e44634d
2020-01-22 12:09:34 -08:00
Peter Collingbourne
fa2de1c6b1 Change libc++ to stop statically linking the unwinder.
Bug: 144430859
Change-Id: I012d03c244be7a8222c2b95b0f8cd9a971b87a85
2020-01-10 11:40:09 -08:00
Colin Cross
50f73d79e4 Remove -nodefaultlibs and -nostdinc++
-nostdinc++ is already passed by the build system for stl: "none".
-nodefaultlibs was prevoiusly passed by the build system, but has
been replaced with -nostdlib++ to avoid having to manually pass
all the other default libraries on the command line.  Passing
-nodefaultlibs here causes libc++ to no longer link against libc.

Test: m checkbuild
Change-Id: Ib3392d545f68be594800fe806ecd365f830d201e
2019-10-03 16:05:33 -07:00
dimitry
a44472d932 libcxx supports native_bridge
The library can be used to  build binaries
for translated architectures.

Bug: http://b/77159578
Test: make
Change-Id: I3c41a52d599bae2c50feb937267295d9ea8844ca
2019-05-06 12:37:14 +02:00
Bowgo Tsai
9c713b6c43 Adding libc++fs to recovery available
This is for init, which is recovery available, to use std::filesystem.

Bug: 126493225
Test: build pass
Change-Id: I4012f99bcfacf57e45f9f7fd04f76311c279a914
2019-04-17 17:26:22 +08:00
Dan Albert
fd86c1f3ed Enable testing C++ coroutines TS.
Test: ./run_tests.py --bitness 32
Test: ./run_tests.py --bitness 64
Test: ./run_tests.py --bitness 64 --host
Bug: None
Change-Id: I620c999b6c156129257d3937b0893f45a6d3fddd
2019-02-28 15:11:47 -08:00
Dan Albert
4d4d6a8f06 Add std::filesystem support.
Test: ./run_tests.py --bitness 32
Test: ./run_tests.py --bitness 64
Test: ./run_tests.py --bitness 64 --host
Bug: None
Change-Id: Ie277f503b754321eba04b906fa4ee6d670b2c1b2
2019-01-10 21:26:33 -08:00
Dan Albert
fc8f268b2c Add and test libc++experimental.
Test: ./run_tests.py --bitness 32
Test: ./run_tests.py --bitness 64
Test: ./run_tests.py --bitness 64 --host
Bug: None
Change-Id: I9f712f8f73a8335aadf82af6686158de819442be
2019-01-09 21:29:39 -08:00
Dan Albert
91714f98f6 Adapt to upstream changes.
Test: ./run_tests.py --bitness 32
Test: ./run_tests.py --bitness 64
Test: ./run_tests.py --bitness 64 --host
Bug: None
Change-Id: I1b2870b44492fb674884a08a541387f566067cb0
2019-01-08 15:38:06 -08:00
Elliott Hughes
58fffb452e Fix macOS build.
Before:

  ld: unknown option: --strip-all

Test: none, since I don't have a Mac
Change-Id: Iebb5607173fc6e91ac1c5aaf703e5e1728c5b098
2018-12-12 10:53:35 -08:00