aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-02Snap for 11400057 from 9a4853f0327e0266818c8d6b4967e2e8f36b1a88 to ↵simpleperf-releaseAndroid Build Coastguard Worker
simpleperf-release Change-Id: Idaa5482750963a8964710731bdb1d816f542fbed
2023-10-16Snap for 10957012 from d7bf0d569fd061407583ade499e35f132ff06121 to ↵Android Build Coastguard Worker
simpleperf-release Change-Id: If25b16059348b6900cdcae900b54a250edb3a076
2023-07-21Merge remote-tracking branch 'aosp/upstream-main' into main am: 755aefef35 ↵Vinh Tran
am: d7bf0d569f am: 59148a708a am: 13ca54997b Original change: https://android-review.googlesource.com/c/platform/external/bazelbuild-rules_cc/+/2663436 Change-Id: I145bb3c6279c090e853be57cb2371e11b151d1f1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-21Merge remote-tracking branch 'aosp/upstream-main' into main am: 755aefef35 ↵Vinh Tran
am: d7bf0d569f am: 59148a708a Original change: https://android-review.googlesource.com/c/platform/external/bazelbuild-rules_cc/+/2663436 Change-Id: I53d60834b93dd2645dc288e25db6ecb3b7ba5718 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-21Merge remote-tracking branch 'aosp/upstream-main' into main am: 755aefef35 ↵Vinh Tran
am: d7bf0d569f Original change: https://android-review.googlesource.com/c/platform/external/bazelbuild-rules_cc/+/2663436 Change-Id: Ib70cc611dbc5050361e189ccb2429cb0e054199e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-21Merge remote-tracking branch 'aosp/upstream-main' into main am: 755aefef35Vinh Tran
Original change: https://android-review.googlesource.com/c/platform/external/bazelbuild-rules_cc/+/2663436 Change-Id: I2c933967aa75d22ac8a32f1992cca39cfcba2ea4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-18Merge remote-tracking branch 'aosp/upstream-main' into mainplatform-tools-34.0.5Vinh Tran
Add three more files - METADATA - MODULE_LICENSE_APACHE2 - OWNERS Test: N/A Bug: 290150208 Change-Id: I379d90002449635bc1e8c83354bd151150d6a044
2023-07-18Fix licensing errors and add default condition for `local_defines`.upstream/0.0.8Googler
PiperOrigin-RevId: 548995629 Change-Id: I0734ca5b64cf37401ec74a339a67f3044321aa7c
2023-07-18Merge pull request #167 from fmeum:add-compiler-settingsCopybara-Service
PiperOrigin-RevId: 548940888 Change-Id: Id69973c5014cfe59729cab2d983df24b7422602d
2023-07-18Merge pull request #188 from fmeum:tests-ciCopybara-Service
PiperOrigin-RevId: 548924746 Change-Id: Ib201c6dd5c383b2fb8d0bec78c4037df964ab513
2023-07-17Add support for expand_if_available for env_entryGoogler
PiperOrigin-RevId: 548694860 Change-Id: I90f46902058fe1ac3a75bb25bddbbf6e181fbabd
2023-07-13Initial empty repositorymain-16kFrank Piva
2023-07-10Add well-known compiler `config_setting`sFabian Meumertzheim
As of Bazel 6.0.0, all Bazel-provided toolchains report consistent compiler names that can be matched on with `select`. Having a central place for `config_setting`s that can be used for this purpose makes it so that rulesets don't have to define them themselves and moving the compiler flag out of `@bazel_tools` becomes easier as it is no longer referenced directly. Also includes minor fixes to `//tests/...` so that it can be enabled in CI.
2023-07-10Merge pull request #188 from fmeum/tests-cibuildbreaker2021
Enable `//tests/...` in CI
2023-07-08Enable `//tests/...` in CIFabian Meumertzheim
2023-06-12Get rid of unused objcpp_executable typeGoogler
PiperOrigin-RevId: 539637641 Change-Id: I80f65a738e77b58054121bfe19a47659fb50fc42
2023-05-02Remove `cc_host_toolchain_alias` target.Googler
Right now there should be no difference between `cc_host_toolchain_alias` and `cc_toolchain_alias` rules. This is a potentially breaking change for Bazel, if something was depending on `current_cc_host_toolchain` try depending on `current_cc_toolchain` instead. PiperOrigin-RevId: 528762965 Change-Id: Id2d211c61fa06a578a838c054682c3507aa48261
2023-04-12Automated rollback of commit 06e9dcf4b7134da951bfff85beebb2c09252092b.Googler
*** Reason for rollback *** Breaking tap/blaze. Example failure: [] *** Original change description *** Sort action lists to make diffing easier. *** PiperOrigin-RevId: 523671424 Change-Id: I475ff02bf8efd3c56e489e2de3ba2c3a5639c32e
2023-04-12Sort action lists to make diffing easier.Googler
PiperOrigin-RevId: 523639362 Change-Id: I8a43799f58ad1ed5b19ec074fa9cb9a567591f36
2023-03-01Merge pull request #183 from renovate-bot:renovate/rules_proto-digestCopybara-Service
PiperOrigin-RevId: 513165629 Change-Id: Ib58015b1e049cc54a347b86ca781807196a162cf
2023-02-28Update rules_proto digest to e51f588Renovate Bot
2023-02-22Merge pull request #182 from renovate-bot:renovate/rules_proto-digestCopybara-Service
PiperOrigin-RevId: 511535003 Change-Id: I4d5847e1339bf8fd882dfcb69140b44efb05072e
2023-02-21Update rules_proto digest to 33aba33Renovate Bot
2023-02-17Merge pull request #180 from silvergasp:patch-2upstream/0.0.6Copybara-Service
PiperOrigin-RevId: 510383031 Change-Id: Id0796b560d646fab81dbda1ee98e6adaf68bfa8e
2023-02-16Update cc_toolchain_config_lib.bzl for bazelbuild/bazel#10967Yannic
2023-02-16Remove redundant "# copybara-use-repo-external-label"Googler
Remove redundant tags for copybara to replace labels with labels including the repository, where there are no labels to substitute after https://github.com/rules_cc/bazel/commit/2f8c04c04462ab83c545ab14c0da68c3b4c96191. PiperOrigin-RevId: 510103824 Change-Id: I9b65a6b7f9b48885aec4df5f4723273633be4860
2023-02-16Introduce flag --@rules_cc//:link_extra_libsGoogler
Numerous tools override --custom_malloc to add debugging or monitoring runtimes (see e.g. sanitizers). While this is fine for cases where the tool must also override malloc to function, in other cases it's simply misuse of --custom_malloc where no other mechanism exists to link an extra library. This becomes especially problematic where a runtime library is supposed to be added in certain configurations that should run in production or other performance sensitive builds. In these cases, we should _not_ override malloc, which may also be specified by a cc_binary target. Doing so would introduce unwanted changes, potentially affecting performance negatively. This is the @rules_cc counterpart to the equivalent Bazel tools flag --@bazel_tools//tools/cpp:link_extra_libs. Users that use @rules_cc to build their C++ projects may use both flags interchangably, however, the @rules_cc flag should be preferred. PiperOrigin-RevId: 510103352 Change-Id: Iafccd00ffdb65cb4f953d5acadc451cffc134533
2023-02-14Automatic code cleanup.Googler
PiperOrigin-RevId: 509526713 Change-Id: I852b1620897d8c6787ca25b6790f245b5bc274f0
2023-02-14Merge pull request #177 from renovate-bot:renovate/bazel_skylib-1.xCopybara-Service
PiperOrigin-RevId: 509457484 Change-Id: I1c72c7e256e831fbcae66900ea4be4ea3dcbd1d1
2023-02-14Merge pull request #173 from renovate-bot:renovate/io_abseil_py-1.xCopybara-Service
PiperOrigin-RevId: 509457306 Change-Id: I89f3f455e5294765b78c61daaaca4d1c6e69b6fc
2023-02-13Merge pull request #176 from renovate-bot:renovate/io_bazel_rules_go-0.xCopybara-Service
PiperOrigin-RevId: 509176425 Change-Id: Idc28b71ab3580fe7167737d13dbfd760f360db44
2023-02-09Update dependency bazel_skylib to v1.4.1Renovate Bot
2023-02-03Automatic code cleanup.upstream/0.0.5Googler
PiperOrigin-RevId: 506908397 Change-Id: I4571c9e947b5878519d5ec291d2fc58566159c84
2023-02-02Merge pull request #175 from renovate-bot:renovate/bazel_skylib-1.xCopybara-Service
PiperOrigin-RevId: 506605277 Change-Id: I3ae667cb3ec4a9391f94261965b765560995fd47
2023-02-02Merge pull request #160 from renovate-bot:renovate/rules_proto-digestCopybara-Service
PiperOrigin-RevId: 506604382 Change-Id: Id238acc046b708433a49e1059ce3d20a89e10db9
2023-02-01Update dependency io_bazel_rules_go to v0.38.1Renovate Bot
2023-02-01Update dependency bazel_skylib to v1.4.0Renovate Bot
2023-02-01Update rules_proto digest to 3f1ab99Renovate Bot
2023-01-18Merge pull request #165 from fmeum:fix-workspace-moduleCopybara-Service
PiperOrigin-RevId: 502815989 Change-Id: I4ab8aeb227f699f8d93d6ff787e4927b26cb21be
2023-01-18Fix MODULE.bazel formattingFabian Meumertzheim
Required due to a new buildifier release.
2023-01-18Merge pull request #154 from ↵Copybara-Service
keith:ks/move-apple-toolchain-setup-to-apple_support PiperOrigin-RevId: 502796914 Change-Id: I2cd0481a244db416ec2abb06e05dee0f783b72b5
2023-01-11Update dependency io_abseil_py to v1.4.0Renovate Bot
2023-01-11Merge pull request #166 from fmeum:patch-1Copybara-Service
PiperOrigin-RevId: 501245941 Change-Id: Ic064d20847215c65bf01fda2e1941cb497d949bf
2023-01-11Copybara Merge: https://github.com/bazelbuild/rules_cc/pull/165Fabian Meumertzheim
BEGIN_PUBLIC Copybara import of the project: -- 56e69b82484f1a9fb55d8173cc112f9f608f3581 by Fabian Meumertzheim <fabian@meumertzhe.im>: Simplify WORKSPACE setup and update ancient deps By removing a single unused `bzl_library` target, rules_cc no longer has any dependencies that would need to be loaded by a dependency macro. The existing macro is made a no-op. The few needed Bazel Federation dependencies are inlined and, in the case of bazel_skylib and abseil-py, updated to modern versions. Also reorders `WORKSPACE` to list direct dependencies first and keeps `MODULE.bazel` in sync with the dependency versions used in WORKSPACE. The `ubuntu1604` CI pipeline is removed as the version of Python used by it is no longer supported and the distribution is EOL. Instead, a new pipeline is added to check the Bzlmod build. END_PUBLIC COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_cc/pull/165 from fmeum:fix-workspace-module 56e69b82484f1a9fb55d8173cc112f9f608f3581 PiperOrigin-RevId: 501245864 Change-Id: Ib71ad910705807a00929a76774387a38d2da0f9f
2023-01-11Automated rollback of commit 48881f1f453c963e49044210bb1d09b354c83f67.Googler
*** Reason for rollback *** Broke a test *** Original change description *** The auto-configured toolchains provided by Bazel itself have diverged heavily from the version maintained in this repo. There is no need to maintain this duplication until Starlarkification has progressed succiciently for rules_cc to be the source of truth for them. This is particularly relevant for Bzlmod, which currently uses the toolchains defined in rules_cc. As a result, Bazel C++ builds will use subtly different toolchains depending on whether --enable_bzlmod is used or not. This is fixed... *** PiperOrigin-RevId: 501228335 Change-Id: I858dc3ea44df7ae70b5603f6dc2e082b4540c42a
2023-01-11The auto-configured toolchains provided by Bazel itself have diverged ↵Fabian Meumertzheim
heavily from the version maintained in this repo. There is no need to maintain this duplication until Starlarkification has progressed succiciently for rules_cc to be the source of truth for them. This is particularly relevant for Bzlmod, which currently uses the toolchains defined in rules_cc. As a result, Bazel C++ builds will use subtly different toolchains depending on whether --enable_bzlmod is used or not. This is fixed by loading toolchain detection logic from @bazel_tools in the module extension. Closes #163 PiperOrigin-RevId: 501199523 Change-Id: I01f263d37495d0c5dd070c8a32945898d1d639c5
2023-01-10Remove entire macOS toolchainKeith Smiley
This defaults to C++, and the previous setup will be moved to apple_support
2023-01-10Move Apple toolchain setup to apple_supportKeith Smiley
Mirrors https://github.com/bazelbuild/bazel/pull/16619
2023-01-10Delete `cc/version.bzl`Fabian Meumertzheim
The version has never been updated since the first release and since rules_cc is currently a slim wrapper around Bazel-provided rules, version detection shouldn't be necessary.
2023-01-10The targets in the old package were either not publicly visible or testonly ↵Fabian Meumertzheim
dependencies and had diverged heavily from @bazel_tools. Instead, add an alias to the Bazel-provided runfiles library under //cc/runfiles, following https://bazel.build/rules/deploying. Closes #162 PiperOrigin-RevId: 500929486 Change-Id: I3290c2b836af2313fbf45459c81af24fbde877d0