Commit Graph

575 Commits

Author SHA1 Message Date
Googler bc665f9271 Automated rollback of commit 48881f1f45.
*** 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-11 02:48:25 -08:00
Fabian Meumertzheim 48881f1f45 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 by loading toolchain detection logic from @bazel_tools in the module extension.

Closes #163

PiperOrigin-RevId: 501199523
Change-Id: I01f263d37495d0c5dd070c8a32945898d1d639c5
2023-01-11 00:12:08 -08:00
Keith Smiley 404bb430e7
Remove entire macOS toolchain
This defaults to C++, and the previous setup will be moved to
apple_support
2023-01-10 08:43:46 -08:00
Keith Smiley 52f5feaf1d
Move Apple toolchain setup to apple_support
Mirrors https://github.com/bazelbuild/bazel/pull/16619
2023-01-10 08:43:45 -08:00
Fabian Meumertzheim cbf01d28ec Delete `cc/version.bzl`
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-10 11:02:51 +01:00
Fabian Meumertzheim 06112c7d9e The targets in the old package were either not publicly visible or testonly 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
2023-01-10 02:00:52 -08:00
Googler 15ed46df43 Change copybara file in preparation for unknown commit
PiperOrigin-RevId: 500922407
Change-Id: I109541cd7fa033e2925fdac1e020a72b1ea99736
2023-01-10 01:18:47 -08:00
Googler 7673ce6438 Delete objc_archive action type
PiperOrigin-RevId: 499061707
Change-Id: Ia2a79f33c991a9c517c2fa940ff25c959ca35d65
2023-01-02 12:08:25 -08:00
Copybara-Service 8e2588f2e4 Merge pull request #158 from renovate-bot:renovate/io_bazel_rules_go-0.x
PiperOrigin-RevId: 493609607
Change-Id: I733434458cc6685e2334193ecc08881c5d9a269a
2022-12-07 08:21:33 -08:00
Renovate Bot dd371fd0d0
Update dependency io_bazel_rules_go to v0.37.0 2022-12-06 18:42:20 +00:00
Copybara-Service bb1aaeb77d Merge pull request #156 from renovate-bot:renovate/io_bazel_rules_go-0.x
PiperOrigin-RevId: 491901868
Change-Id: Iff24b64bd995220139c093a315ad69060bc465fe
2022-11-30 06:45:05 -08:00
Renovate Bot a928878133
Update dependency io_bazel_rules_go to v0.36.0 2022-11-23 19:03:57 +00:00
Copybara-Service 99d8c5a387 Merge pull request #155 from renovate-bot:renovate/rules_proto-digest
PiperOrigin-RevId: 490241603
Change-Id: I7b5decf29e05954e5a5423d50d632ccf20d7dd86
2022-11-22 07:52:39 -08:00
Renovate Bot 10aadf7fa2
Update rules_proto digest to b5e5fc8 2022-11-15 20:09:50 +00:00
Copybara-Service 35fb29866e Merge pull request #127 from keith:ks/apply-upstream-libtool_check_unique-fix
PiperOrigin-RevId: 485829598
Change-Id: Ifb0baed68f4a496c50989697f9d1a1cbc851b93e
2022-11-03 03:45:03 -07:00
Keith Smiley 99df95ba02
Apply upstream libtool_check_unique fix
This ports 48dd159808
2022-11-01 10:05:26 -07:00
Copybara-Service dc039dc2d8 Merge pull request #152 from renovate-bot:renovate/rules_proto-digest
PiperOrigin-RevId: 482224948
Change-Id: I372363bf0c513770d83d20fffcdd3bbcc81ad633
2022-10-19 09:28:44 -07:00
Renovate Bot 38aedf1b3e
Update rules_proto digest to 70b4248 2022-10-18 16:19:27 +00:00
Copybara-Service 57cee5e2d7 Merge pull request #151 from renovate-bot:renovate/rules_proto-digest
PiperOrigin-RevId: 481869743
Change-Id: I499904d54c6337abd77a95f8166452ba10ffb40d
2022-10-18 03:02:56 -07:00
Renovate Bot 9ecd4beccd
Update rules_proto digest to ba40143 2022-10-17 16:06:02 +00:00
Copybara-Service b6d40334fc Merge pull request #132 from renovate-bot:renovate/rules_proto-digest
PiperOrigin-RevId: 480103125
Change-Id: Idbb3af5a9028d93a00f20c3400e72907c8be277b
2022-10-10 09:29:32 -07:00
Renovate Bot 257abc87ee
Update rules_proto digest to fcfc67b 2022-10-10 10:45:55 +00:00
Copybara-Service 18fc41cd0a Merge pull request #148 from comius:bump-version
PiperOrigin-RevId: 476367525
Change-Id: I3b3ea5e4c060bf0649a2642dd73d2e6db3f4001c
2022-09-23 07:49:58 -07:00
Ivo List 9394c23723
Merge branch 'main' into bump-version 2022-09-23 14:43:49 +00:00
Ivo List 0f93f26016 Bump version 2022-09-23 14:42:18 +00:00
Copybara-Service 3bbf1f354e Merge pull request #147 from comius:fix-a-typo,
PiperOrigin-RevId: 476363762
Change-Id: Iba9388f377289f61ec2b4603ebb8a85ae38d0481
2022-09-23 07:29:04 -07:00
Ivo List 8ae2a8ba58 Fix a typo in metadata.template.json 2022-09-23 14:24:10 +00:00
Copybara-Service 16a4dfe043 Merge pull request #144 from aranguyen:main
PiperOrigin-RevId: 475495525
Change-Id: Ieef564f6ceaf7df20a495e32ef88dbbb13c14eb9
2022-09-20 01:52:32 -07:00
Ara Nguyen df0cb840d8 update googletest 2022-09-19 21:13:38 -04:00
Ivo List 13d212d39b Merge pull request #146 from bazelbuild:meteorcloudy-patch-1
PiperOrigin-RevId: 475272913
Change-Id: Id75eee2933ee396ae5fc5cbe4941369b813b2c8e
2022-09-19 13:51:00 +00:00
Yun Peng 4ae6132a12 Make buildifier happy 2022-09-19 14:03:31 +02:00
Yun Peng 74f87ea2ba
Fix MODULE.bazel file
The next release for rules_cc would be 0.0.3, and migrate to new toolchain registration API.
2022-09-19 14:00:24 +02:00
Ara Nguyen 23a97aa05e update to latest version of rules_go 2022-09-13 16:59:32 -04:00
aiuto 807a87190a
Merge pull request #142 from aiuto/upd
Update WORKSPACE to account for bazel_tool//platforms going away.
2022-09-06 20:14:09 -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
Googler 2f8c04c044 Automatic code cleanup.
PiperOrigin-RevId: 456494185
Change-Id: I9aaefff0976cca2b68646970c8d4675c8e122d19
2022-06-22 06:02:29 -07:00
Googler 8bb0eb5c5c Add a use_cc_toolchain helper to rules_cc.
Part of github.com/bazelbuild/bazel/issues/14727.

PiperOrigin-RevId: 449499388
Change-Id: I9fb5fecd1059b0d48a26e89d1c25d54fd2348b55
2022-05-18 09:20:17 -07:00
Googler ab0be67e22 Update `cfg` values to make buildifier happy.
PiperOrigin-RevId: 449498641
Change-Id: I145fc5dfec522753deaa64ace04ca56546351ff5
2022-05-18 09:16:43 -07:00
Copybara-Service cb6d32e4d1 Merge pull request #120 from renovate-bot:renovate/rules_proto-digest
PiperOrigin-RevId: 446709147
Change-Id: Idb72bff6803a52fad3f0863d6926f9fdafee0d62
2022-05-05 07:15:11 -07:00
Copybara-Service d71222366c Merge pull request #129 from cpsauer:main
PiperOrigin-RevId: 446648352
Change-Id: I6ca1868608e5d71ebd1d56c5a0934f532b9d9f1d
2022-05-05 00:45:22 -07:00
Christopher Peterson Sauer e0dad88a07 Move examples from deprecated @rules_cc//cc:find_cpp_toolchain -> @bazel_tools//tools/cpp:toolchain_utils.bzl 2022-04-11 16:38:30 -07:00
Christopher Peterson Sauer ab8b67a0ab Move examples from deprecated find_cpp_toolchain -> find_cc_toolchain 2022-04-05 23:58:12 -07:00
Renovate Bot e01793e13f
Update rules_proto digest to 3212323 2022-04-05 11:55:54 +00:00
Googler 58f8e026c0 Add xcode_configure in cc_configure module extension
This is needed by cc toolchain on macOS.

PiperOrigin-RevId: 435328319
Change-Id: I505b18d6058daf2cbb479f454f299b7b4a92bd84
2022-03-17 06:25:24 -07:00
Googler 3eaa3c7f88 Remove unnecessary tests from rules_cc
They are now part of the bazelbuild/bazel repository.

Copies buildifier changes contributed by Keith in https://github.com/bazelbuild/rules_cc/pull/128

RELNOTES:none
PiperOrigin-RevId: 435312636
Change-Id: I4d5d2f58d90026c0cdfb5c0a90709de7c28c6ccd
2022-03-17 04:50:16 -07:00
Googler c460f83acb Include more information about configurations in cquery proto formatted outout
1. Add a repeated Configuration field to CqueryResult, and fill in the
checksum, platform, and mnemonic fields.

2. Add a configuration_id field to ConfiguredTarget, and deprecate the existing
configuration field in ConfiguredTarget. The configuration_id field is an index
that points to the Configuration message stored in CqueryResult, following the
same pattern as ActionGraphContainer. This avoids duplicating the same
Configuration message for each ConfiguredTarget.

RELNOTES: Include more information about configurations in cquery proto
formatted output. This deprecates the configuration field of
AnalysisProtosV2.ConfiguredTarget, and adds a new field, configuration_id, to
be used instead.
PiperOrigin-RevId: 429129916
Change-Id: Id048229a6872e6462b67cfe3041cdc907967d7bf
2022-03-17 04:50:09 -07:00
Googler 081771d4a0 Adds providers back temporarily until TF can use head
Adds back providers to cc_shared_library bzl file in rules_cc until TF is using
bazel from head and can use the builtin cc_shared_library version.

RELNOTES:none
PiperOrigin-RevId: 409136047
Change-Id: I53388c18bcbc555e8a3c7edbc5e54634375f051f
2021-11-11 06:50:45 -08:00
Googler 22532c5379 Fix presubmits errors introduced by wrong flags
The flags for the cc_shared_library tests were not correct.

RELNOTES:none
PiperOrigin-RevId: 407824952
Change-Id: Ibd66ca918b0ea75587f5807742f63bb23267602b
2021-11-05 08:10:49 -07:00