aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-05-09Upgrade bazelbuild-rules_cc to f88663dc502aacb6a6f377030d0652309412c8a9HEADmastermain-kernel-build-2024mainArmando Montanez
This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update external/bazelbuild-rules_cc For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md Test: TreeHugger Change-Id: I10775d49665bac5b36a40bf73e72f57f94acbcbe
2024-04-18Provide a default toolchain_identifier.Googler
BEGIN_PUBLIC Provide a default toolchain_identifier. END_PUBLIC PiperOrigin-RevId: 626172528 Change-Id: I2d23d79b82f4268b462dac79edc4f69a7f865e00
2024-04-05Implement flag_group in the new rule-based toolchain.upstream/0.0.10-rc1Googler
BEGIN_PUBLIC Implement flag_group in the new rule-based toolchain. END_PUBLIC PiperOrigin-RevId: 622107179 Change-Id: I9e1971e279f313ce85537c899bcf80860616f8b7
2024-04-05Fix the load broken by a new version of buildifier.Googler
BEGIN_PUBLIC Fix the load broken by a new version of buildifier. Apparently the native-cc lint has been split into native-cc and native-cc-proto. This meant that our native.cc_proto_library was getting incorrectly turned into cc_proto_library when copybara invoked buildifier. END_PUBLIC PiperOrigin-RevId: 622097522 Change-Id: Idb89a5f9facae20f490ac8f83a5adf2859cd52ab
2024-04-04Gather variable metadata for the new rule-based toolchain.Googler
BEGIN_PUBLIC Gather variable metadata for the new rule-based toolchain. END_PUBLIC PiperOrigin-RevId: 622000877 Change-Id: I5b2ea6c363fc43fd44e60ffc8fa7ae041545337e
2024-04-04Remove out of order load lint warnings.Googler
The copybara configuration has been broken by [] PiperOrigin-RevId: 621998904 Change-Id: I47e6b7b95bc9d8086547ae928065f67ac3f0006a
2024-03-26Add additional actions that are not specified in action_names.bzl.Googler
BEGIN_PUBLIC Add additional actions that are not specified in action_names.bzl. These are mostly taken from https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/rules/cpp/CppActionNames.java. These also include some actions that have explicitly been removed from CppActionNames, because those actions are still in use elsewhere (eg. https://github.com/bazelbuild/bazel/blob/9a333bc59e04e3c926121b11eb97547ba823c6ed/src/main/java/com/google/devtools/build/lib/rules/cpp/CppActionConfigs.java#L974). END_PUBLIC PiperOrigin-RevId: 619420983 Change-Id: I1f5eb1c0e43fb1563db9065ebc46f70bf8d06fc5
2024-03-25Implement provides in rule based toolchain.Googler
BEGIN_PUBLIC Implement provides in rule based toolchain. END_PUBLIC PiperOrigin-RevId: 619082926 Change-Id: I938640981bd10f0e3d41402d211672a45264df1a
2024-03-25Improve errors in variable definitions by adding labels to the variables.Googler
BEGIN_PUBLIC Improve errors in variable definitions by adding labels to the variables. END_PUBLIC PiperOrigin-RevId: 618984216 Change-Id: I5d6d11ba2b72f426b9f01bcbb528b0914c98c964
2024-03-21Refactor action sets for consistency and simplicityGoogler
BEGIN_PUBLIC Refactor action sets for consistency and simplicity * Remove the "CC" prefix on some of the actions, as we're already within the scope of rules_cc. * Remove the "all" prefix, since the plural "actions" should already imply this. * Ensure all action types sets end with "_actions" * Refactor some action type sets to be constructed from other (eg. link actions = link executables + link dynamic libraries). * Remove the redundant "all_compile_actions", since it was equivalent to "all_cc_compile_actions" END_PUBLIC PiperOrigin-RevId: 617985242 Change-Id: I9a3621a9d613ff604efdc5c86ba52e5c77f06731
2024-03-19Add strictly typed variables toolchain rules.Googler
BEGIN_PUBLIC Add strictly typed variables to toolchain rules. This should allow us to implement a proper replacement for flag_group END_PUBLIC PiperOrigin-RevId: 617338607 Change-Id: I7f3058578cb5eb17ecc1aa38d2e1459e0742aee9
2024-03-19Rename ExpandArgs to NestedArgsGoogler
After discussion with @amontanez in unknown commit, we decided that NestedArgs was a more appropriate name. BEGIN_PUBLIC Rename ExpandArgs to NestedArgs END_PUBLIC PiperOrigin-RevId: 617085672 Change-Id: I1d7190cac79f8fa953d23be7d0db3b028a84cf30
2024-03-14Refactor AddArgsInfo into ExpandArgsInfoGoogler
BEGIN_PUBLIC Refactor AddArgsInfo into ExpandArgsInfo This allows us to create a similar mechanism to the current toolchain, while maintaining type safety. END_PUBLIC PiperOrigin-RevId: 615939056 Change-Id: I9b6763150194f8a76dfd8da730a3e2d45accbe20
2024-03-13BEGIN_PUBLICGoogler
Fix problem with the toolchain definition. A test for this will be added later in the form of an example toolchain. END_PUBLIC PiperOrigin-RevId: 615416990 Change-Id: I1f7fd1640e88b446597768b4f75c2154b630074f
2024-03-13Rename additional_files to data.Googler
BEGIN_PUBLIC Rename additional_files to data. This is more consistent with other rules. END_PUBLIC PiperOrigin-RevId: 615364332 Change-Id: Ic27ec8c8e72d290e72074034f85a34b38401599b
2024-03-07No public descriptionGoogler
PiperOrigin-RevId: 613579953 Change-Id: I4aea8af1b3db8eb532c7c9296fc4dfa0c2ff9481
2024-03-06Implement the cc_toolchain macro.Googler
BEGIN_PUBLIC Implement the cc_toolchain macro. Things should be working at this point. This will be followed up with an example. END_PUBLIC PiperOrigin-RevId: 613436885 Change-Id: I1fc4a1e3a71c4f819998b69c73922821322d2991
2024-03-05Allow cc_toolchain_info rule to be used as a parameter to pass into ↵Googler
native.cc_toolchain(config = ...) BEGIN_PUBLIC Allow cc_toolchain_info rule to be used as a parameter to pass into native.cc_toolchain(config = ...) END_PUBLIC PiperOrigin-RevId: 613000772 Change-Id: I8348e2cbb4aa7d0a523341dcaf1e2c2bc647f640
2024-03-05Implement cc_toolchain_config rule and cc_legacy_file_group rule.Googler
BEGIN_PUBLIC Implement cc_toolchain_config rule and cc_legacy_file_group rule. Note that this rule is in the impl/ directory because we require users to use the cc_toolchain_config rule via the cc_toolchain macro that we will define later, to ensure that parameters such as `compile_files` are passed correctly. END_PUBLIC PiperOrigin-RevId: 612998387 Change-Id: I986d11775e368c4386a930ab2ce8663956a57f9d
2024-03-05BEGIN_PUBLICGoogler
Implement ToolchainConfigInfo. Add support to create the toolchain from feature, action config, and args targets, and validate it to ensure correctness. END_PUBLIC PiperOrigin-RevId: 612985448 Change-Id: I7d9086dd1dde07eb0c2484414c9c28c1b8bfb427
2024-03-05Remove macros wrapping rules that take in features.Googler
Based on the comments in unknown commit, I created this CL BEGIN_PUBLIC Remove macros wrapping rules that take in features. END_PUBLIC PiperOrigin-RevId: 612979047 Change-Id: I5690717b164432c9cecebf87ef9dda41f9fa846f
2024-02-27BEGIN_PUBLICGoogler
Implement builtin CC toolchain features. This will allow you to override builtin features END_PUBLIC PiperOrigin-RevId: 610887686 Change-Id: I30e928c116386ec703dff24a97f925481c395b06
2024-02-27BEGIN_PUBLICGoogler
Implement cc_feature_set and cc_feature_constraint. END_PUBLIC PiperOrigin-RevId: 610713183 Change-Id: Ia009ac536b71cd9aa44578f823f13361c1580e37
2024-02-27BEGIN_PUBLICGoogler
Implement cc_feature for the rule based toolchain. END_PUBLIC PiperOrigin-RevId: 610712498 Change-Id: I2539825f0f4cf7f234a2310de6af0662aeb0ea2c
2024-02-26BEGIN_PUBLICGoogler
Implement cc_action_type_config. Rename it from cc_action_config, to make it clear that we are not configuring an action, but rather configuring a type of action. END_PUBLIC PiperOrigin-RevId: 610518142 Change-Id: Ic10755952ee786d30a3a5564aa09a8dc16499f3a
2024-02-23BEGIN_PUBLICGoogler
Implement cc_args_list. It's completely unneccesary to implement it this early, but collecting args lists is also required for cc_feature. END_PUBLIC PiperOrigin-RevId: 609833962 Change-Id: I369a929af4280c0a7ebbe2e13159b640c1968209
2024-02-23BEGIN_PUBLICGoogler
Pull more info into ArgsListInfo. This allows us to make queries such as "get me all the flags / files required for this specific action". This will allow us to implement cc_action_config more easily and efficiently. END_PUBLIC PiperOrigin-RevId: 609828504 Change-Id: Ie3978674c5027f892d2e5e4c8d937a52c59fde5d
2024-02-22BEGIN_PUBLICGoogler
Implement cc_tool END_PUBLIC PiperOrigin-RevId: 609307150 Change-Id: I2e135a59e06a56ca8ec071254d340ac4b984b234
2024-02-21BEGIN_PUBLICGoogler
Add support for testing against more complex subject types. We can now use subjects such as subjects.result(subjects.str) for something that may return a string, or fail. END_PUBLIC PiperOrigin-RevId: 608971309 Change-Id: I9ae61c988a597189b84fb6ccef75c96697c6e364
2024-02-20BEGIN_PUBLICGoogler
Implement cc_args. Also change cc_flag_set / cc_flag_group to cc_args / cc_arg_group. This is to lean into the idea that this is roughly equivalent to ctx.actions.args() END_PUBLIC PiperOrigin-RevId: 608804069 Change-Id: I74ea883b14219f904aaafc4eab902b96a1fb3e3d
2024-02-20BEGIN_PUBLICGoogler
Add support for testing rules_cc's new toolchains with rules_testing. END_PUBLIC PiperOrigin-RevId: 608769646 Change-Id: I1a698355e5e977cc86eedc7cf6e8e0f888593cb8
2024-02-12Implement action types for the configurable cc toolchain.Googler
This does nothing on its own, but is required for other types. PiperOrigin-RevId: 606441930 Change-Id: I94dbbd760be856f28370a61edcf815eecb16f339
2024-02-12Add documentation for rule-based bazel toolchain configurationGoogler
PiperOrigin-RevId: 606434760 Change-Id: Ie238b5513144e4289186af470e7503f05dd87890
2024-02-12Add providers for rule-based toolchain configuration.Googler
Similar to the previous CL, this CL is to ensure that we agree on the relationship between each different type. This will also allow for developing two things in parallel: * The rules that generate these providers. * Toolchain validation, and conversion to the cc_toolchain_config_lib providers. PiperOrigin-RevId: 606391257 Change-Id: I9c2a9895d71ed987e85eb60f908d9833b838d9f8
2024-02-12Cleanup uses of ctoolchain migrationGoogler
BEGIN_PUBLIC Internal change END_PUBLIC PiperOrigin-RevId: 606195771 Change-Id: I2c6ef2bd57991c6fe65e1bf49a67f3250c12724d
2024-02-09Fix internal breakages for `rules_cc`.Googler
PiperOrigin-RevId: 590620989 Change-Id: I2586ea71b477fc5cb75429f8d839c8818d641e8b
2024-02-09No public descriptionGoogler
PiperOrigin-RevId: 590213610 Change-Id: Iefbee8b45c49fed7696f28519ac52f16ff643228
2023-11-20Automatic code cleanup.Jie Luo
PiperOrigin-RevId: 584077823 Change-Id: I1b57584d21fda9c8da2f04a0a03f1c387a579497
2023-11-03Merge pull request #201 from renovate-bot:renovate/io_bazel_rules_go-0.xCopybara-Service
PiperOrigin-RevId: 579091633 Change-Id: I80738931ec836d9f302f7bf41b1dc324d3b2f4f9
2023-09-30Update dependency io_bazel_rules_go to v0.42.0Mend Renovate
2023-09-19Merge pull request #196 from bazelbuild:meteorcloudy-patch-2upstream/0.0.9Copybara-Service
PiperOrigin-RevId: 566554609 Change-Id: I083884dcd3d92ab421ea2a630cd4d4ed21ff9760
2023-09-19Update MODULE.bazelYun Peng
2023-09-19Update MODULE.bazelYun Peng
2023-09-19Register cc toolchain from @bazel_toolsYun Peng
The one located in rules_cc isn't yet in sync.
2023-09-18Create toolchain types for proto_library and lang_proto_libraryGoogler
BEGIN_PUBLIC Create toolchain types for proto_library and lang_proto_library This handles only lang_proto_libraries defined in Bazel: Java, Java lite, Python, C++. Design doc: https://docs.google.com/document/d/1CE6wJHNfKbUPBr7-mmk_0Yo3a4TaqcTPE0OWNuQkhPs/edit#heading=h.5mcn15i0e1ch Issue: https://github.com/bazelbuild/rules_proto/issues/179 END_PUBLIC PiperOrigin-RevId: 566380737 Change-Id: I49b132f861bc7a871d98bbd333271d540faaf737
2023-09-18Automatic code cleanup.Googler
PiperOrigin-RevId: 566245154 Change-Id: Id906c52da9c922cee77782994a63c6b1dc656fc8
2023-09-12Upgrade version of rules_goGoogler
Fixes: https://github.com/bazelbuild/rules_cc/issues/195 PiperOrigin-RevId: 564652456 Change-Id: I2bef5c13c19374d2a3e57f6fb14ab84e48bc5a80
2023-09-05Fix lexicographical order to make Buildifier happy.Googler
PiperOrigin-RevId: 562719963 Change-Id: I8c50b4606a69d5fedc9dd6b7f9768c2399d86ea3
2023-09-01Automatic code cleanup.Richard Levasseur
PiperOrigin-RevId: 562018631 Change-Id: I7b324d5b151341033df696f82b68e9f9160ad625
2023-07-31Merge pull request #193 from renovate-bot:renovate/platforms-0.xCopybara-Service
PiperOrigin-RevId: 552414057 Change-Id: Idaa9f93597e22571672f3ab14ee628cae8d0e570