Commit Graph

68 Commits

Author SHA1 Message Date
Googler eeed2a9ab7 Remove crostool migration tools
The migration to .bzl configured toolchains happened a long time ago and the conversion tools from proto files are not needed anymore.

This also cleans up rules_cc dependencies to build those tools. And unblock me around the import of py_proto_library, which is not needed anymore.

PiperOrigin-RevId: 683582749
Change-Id: I9a56d9e3f9089f7434708a2cfefdd4f12d186658
2024-10-08 05:35:42 -07:00
Ivo List 7a67e9887b Copybara Merge: https://github.com/bazelbuild/rules_cc/pull/238
BEGIN_PUBLIC
Copybara import of the project:

--
2803a12428 by Ivo List <ilist@google.com>:

Prepare for release 0.0.10-rc2

--
3423c73208 by Ivo List <ilist@google.com>:

Format WORKSPACE

--
a99403a6b0 by Ivo List <ilist@google.com>:

Touch module

--
258d8c9f24 by Ivo List <ilist@google.com>:

Revert "Touch module"

This reverts commit a99403a6b0.

END_PUBLIC

COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_cc/pull/238 from comius:release-0.0.10-rc2 258d8c9f24
PiperOrigin-RevId: 673358956
Change-Id: Iabc9c29e6f168cfdfd2f0657438b71654f470cc9
2024-09-11 05:56:57 -07:00
Googler 2e780ceda9 BEGIN_PUBLIC
Add support for testing rules_cc's new toolchains with rules_testing.
END_PUBLIC

PiperOrigin-RevId: 608769646
Change-Id: I1a698355e5e977cc86eedc7cf6e8e0f888593cb8
2024-02-20 15:54:10 -08:00
Mend Renovate 15e9203eac
Update dependency io_bazel_rules_go to v0.42.0 2023-09-30 01:55:50 +00:00
Googler 9c1686d2cc Upgrade version of rules_go
Fixes: https://github.com/bazelbuild/rules_cc/issues/195
PiperOrigin-RevId: 564652456
Change-Id: I2bef5c13c19374d2a3e57f6fb14ab84e48bc5a80
2023-09-12 02:17:23 -07:00
Mend Renovate 67d307adad
Update dependency platforms to v0.0.7 2023-07-28 21:37:53 +00:00
Renovate Bot 0baf82487f
Update rules_proto digest to e51f588 2023-02-28 15:13:12 +00:00
Renovate Bot adfbe56c12
Update rules_proto digest to 33aba33 2023-02-21 19:32:32 +00:00
Copybara-Service bfeff307f6 Merge pull request #177 from renovate-bot:renovate/bazel_skylib-1.x
PiperOrigin-RevId: 509457484
Change-Id: I1c72c7e256e831fbcae66900ea4be4ea3dcbd1d1
2023-02-14 01:30:01 -08:00
Copybara-Service 74495aa92a Merge pull request #173 from renovate-bot:renovate/io_abseil_py-1.x
PiperOrigin-RevId: 509457306
Change-Id: I89f3f455e5294765b78c61daaaca4d1c6e69b6fc
2023-02-14 01:29:03 -08:00
Copybara-Service 9e14dd8c39 Merge pull request #176 from renovate-bot:renovate/io_bazel_rules_go-0.x
PiperOrigin-RevId: 509176425
Change-Id: Idc28b71ab3580fe7167737d13dbfd760f360db44
2023-02-13 03:09:00 -08:00
Renovate Bot daaae45616
Update dependency bazel_skylib to v1.4.1 2023-02-09 16:37:03 +00:00
Copybara-Service fcd9a03875 Merge pull request #175 from renovate-bot:renovate/bazel_skylib-1.x
PiperOrigin-RevId: 506605277
Change-Id: I3ae667cb3ec4a9391f94261965b765560995fd47
2023-02-02 06:44:32 -08:00
Renovate Bot ae9ab94e9d
Update dependency io_bazel_rules_go to v0.38.1 2023-02-01 02:18:38 +00:00
Renovate Bot 8a612ecbde
Update dependency bazel_skylib to v1.4.0 2023-02-01 02:18:35 +00:00
Renovate Bot e00c2aa151
Update rules_proto digest to 3f1ab99 2023-02-01 02:18:34 +00:00
Renovate Bot 3627f4fdd3
Update dependency io_abseil_py to v1.4.0 2023-01-11 18:15:37 +00:00
Fabian Meumertzheim 66cf3048e9 Copybara Merge: https://github.com/bazelbuild/rules_cc/pull/165
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-11 04:33:23 -08:00
Renovate Bot dd371fd0d0
Update dependency io_bazel_rules_go to v0.37.0 2022-12-06 18:42:20 +00:00
Renovate Bot a928878133
Update dependency io_bazel_rules_go to v0.36.0 2022-11-23 19:03:57 +00:00
Renovate Bot 10aadf7fa2
Update rules_proto digest to b5e5fc8 2022-11-15 20:09:50 +00:00
Renovate Bot 38aedf1b3e
Update rules_proto digest to 70b4248 2022-10-18 16:19:27 +00:00
Renovate Bot 9ecd4beccd
Update rules_proto digest to ba40143 2022-10-17 16:06:02 +00:00
Renovate Bot 257abc87ee
Update rules_proto digest to fcfc67b 2022-10-10 10:45:55 +00:00
Ara Nguyen df0cb840d8 update googletest 2022-09-19 21:13:38 -04:00
Ara Nguyen 23a97aa05e update to latest version of rules_go 2022-09-13 16:59:32 -04:00
Tony Aiuto eafcfc3c88 linty 2022-09-01 12:27:58 -04:00
Tony Aiuto 8438f9e2ac dbg 2022-09-01 12:23:41 -04:00
Tony Aiuto 3b4549ed94 Update WORKSPACE:
- point to bazelbuild/platforms for @platforms
- Use a newer version of rules_go for our internal rules.
- Make a bzl file used in a test visible to the tests.

I believe this fixes a build breakage in bazel at head and 5.3.0
2022-08-26 15:46:53 -04:00
Renovate Bot e01793e13f
Update rules_proto digest to 3212323 2022-04-05 11:55:54 +00:00
Googler ddc0791fa6 Remove dependency on rules_pkg from rules_cc
This helps with getting rules_cc back to green. The distro package doesn't seem critical and it can be added back in a later CL once we figure out what is wrong with the rules_pkg dependency.

RELNOTES:none
PiperOrigin-RevId: 401001290
Change-Id: I94304c7df3597c84633952fb6013bd074c350122
2021-10-05 09:13:17 -07:00
Renovate Bot 6c5c8e9b41
Update rules_proto commit hash to b22f786 2021-09-16 11:35:35 +00:00
Copybara-Service 43360b6741 Merge pull request #93 from renovate-bot:renovate/rules_proto-digest
PiperOrigin-RevId: 388655011
Change-Id: If4a9b74ecfb6e76ce85d9668749c2afdeb573146
2021-08-04 03:01:36 -07:00
Renovate Bot f81d265786
Update rules_proto commit hash to fcad468 2021-08-04 07:14:29 +00:00
Copybara-Service af6fb4f778 Merge pull request #77 from renovate-bot:renovate/rules_pkg-0.x
PiperOrigin-RevId: 384463776
Change-Id: Ie2896f572cab9bb8dd65131c5a335edbed810fb2
2021-07-13 07:59:17 -07:00
Renovate Bot 7d6b0f3177
Update dependency rules_pkg to v0.5.0 2021-07-12 21:57:23 +00:00
Renovate Bot 9a718a5da6
Update bazel_federation commit hash to 6ad33bc 2021-07-12 08:56:17 +00:00
Copybara-Service 3401ea54a1 Merge pull request #95 from renovate-bot:renovate/bazel_federation-digest
PiperOrigin-RevId: 372905293
Change-Id: I72ca2e4b0d0a5b0fdd0dcc00db3f2d07e50e985d
2021-05-10 05:12:19 -07:00
Xavier Bonaventura 299fce788b Fix buildifier format issue 2021-05-03 20:12:34 +02:00
Renovate Bot 0d6e7d1ccb
Update bazel_federation commit hash to 8ce885a 2020-12-10 10:06:46 +00:00
Laurent Le Brun ea0c09ecff Stop depending on rules_pkg through the federation
See discussion on https://github.com/bazelbuild/bazel-federation/issues/117
2020-07-28 14:15:43 +02:00
Googler 4de26b53a6 Remove need for exported_by or linked_statically_by
For now we will restrict allowed exports to the same package. At the same time
static_deps should be used to take into account what should be linked into a
shared library.

RELNOTES:none
PiperOrigin-RevId: 294668451
Change-Id: Ia087519106983bfa9a980e471d3102ab391a53eb
2020-02-12 08:01:50 -08:00
Marcel Hlopko 157a07b53c Fix call in WORKSPACE 2019-11-01 16:39:47 +01:00
Marcel Hlopko 4f8676f6ca Add rules_cc_toolchains to repositories.bzl
This is the new entry point for registering C++ toolchains (replacing
implicit cc_configure()).

While at it, fix one misnamed function.
2019-11-01 16:36:34 +01:00
Googler 262ebec3c2 Fix buildifier warnings in @rules_cc
Fixes:

* Enabled buildifier on the Bazel CI again
* Added Skydocs where missing
* Moved public files out of .../private/... (e.g. cc_toolchain_config_lib.bzl)
* Reformatted
* Removed unused loads
* Using relative labels for cc_configure related files
* Added development dependency on rules_proto
    * they're not in the federation yet, so hand rolling in rules_cc's WORKSPACE file
* Added development dependency on rules_python (from federation)
* Cleaned up copybara (notable change - not using @rules_cc in labels inside rules_cc repo)
* Made cc_flags_supplier usable internally
* Moved load statements to the top of the bzl file
* Moved runfiles to the tools directory
* Unified toolchain_utils.bzl and find_cc_toolchain.bzl

RELNOTES: None.
PiperOrigin-RevId: 276479521
Change-Id: I3196896061fa2ee61a3efb130c214d288782066a
2019-10-24 07:01:25 -07:00
Marcel Hlopko 54c783c4d9 Actually, lets depend on the release archive, not the branch 2019-10-09 15:18:06 +02:00
Marcel Hlopko 2c9c93bc07 Update googletest to 1.10.x 2019-10-09 09:49:37 +02:00
Florian Weikert df4a51f42e Use latest federation version
This version includes rules_pkg 0.2.4, which contains the fix required to cut a first rules_cc release.
2019-09-30 15:10:00 +02:00
fweikert 29da92c66c Use rules_pkg for building releases
This commit allows the creation of distributions, with 0.0.1 being the first version.
See distro/README.md for details on how to build a release.

This commit also uses a new version of the Bazel federation that contains rules_pkg 0.2.2 instead of 0.2.1.

There are still some problems with the WORKSPACE stanza that is being printed by the release notes generation script, though:
- It references a //cc:deps.bzl file, which doesn't exist. I have to modify the scripts in rules_pkg to support a flag like 'has_deps'.
- It doesn't support the Bazel federation yet, since it always tells users to download code from the rules_cc repository.
2019-09-17 18:00:18 +02:00
Googler 4a1c578fb0 C++: Move tools/cpp from bazel_tools to rules_cc
Here we are duplicating bazel_tools/tools/cpp. The goal is for the BUILD files in bazel_tools/tools/cpp to have an alias that point to rules_cc. Then later on with the incompatible flag these aliases will no longer be valid.

Working towards #8743

RELNOTES:none
PiperOrigin-RevId: 264604076
Change-Id: I389702793a1a95b0990dce93577de2b7182e2e6b
2019-08-21 07:30:04 -07:00