-
Notifications
You must be signed in to change notification settings - Fork 173
Comparing changes
Open a pull request
base repository: bazelbuild/rules_cc
base: 0.2.0
head repository: bazelbuild/rules_cc
compare: 0.2.1
- 15 commits
- 24 files changed
- 8 contributors
Commits on Aug 6, 2025
-
Remove legacy cc_toolchain_suite from examples
The rule and legacy toolchain selection is deprecated since Bazel 7. I think it's ok to remove it now. PiperOrigin-RevId: 791647758 Change-Id: I954f7825603d4383e3445cb5f9ce7df132565c9d
Configuration menu - View commit details
-
Copy full SHA for 974a7e0 - Browse repository at this point
Copy the full SHA 974a7e0View commit details
Commits on Aug 7, 2025
-
Rename CcInfo#transitive_native_libraries to _legacy_transitive_nativ…
…e_libraries This is needed to convert CcInfo to Starlark without causing a major regression. Mark the field as legacy, because we'll need to eventually clean it up. Upgrade rules_java, that support both old and new field location. PiperOrigin-RevId: 792196604 Change-Id: I0cee6887a9adf5e91490fa8cfc58f51c63478f69
Configuration menu - View commit details
-
Copy full SHA for 79e2c17 - Browse repository at this point
Copy the full SHA 79e2c17View commit details
Commits on Aug 8, 2025
-
Fix last usage of paths.get_relative in cc_helper_internal.bzl
Bazel skylib does not have this method. This was missed in https://github.com/rules_cc/bazel/commit/8482342f7ec8029a8d890638f7ddcb4099ab41bf Reported externally at 8482342#r163639777 PiperOrigin-RevId: 792527161 Change-Id: I48c9ce2ab296ccbe057d03aa7759c0141bd0c13e
2Configuration menu - View commit details
-
Copy full SHA for 945c95d - Browse repository at this point
Copy the full SHA 945c95dView commit details
Commits on Aug 12, 2025
-
Partially Starlarkify create_module_codegen_action.
Implements the non-generic part of the module codegen declaration. Creation of the action as well as creation of the "compile builder" remain in Java. PiperOrigin-RevId: 794062119 Change-Id: Ie85c864157e1d95561d2408216ff847cbca8d25b
Configuration menu - View commit details
-
Copy full SHA for a68d8f7 - Browse repository at this point
Copy the full SHA a68d8f7View commit details -
Starlarkify CppSemantics.validateStarlarkCompileApiCall()
PiperOrigin-RevId: 794080773 Change-Id: I46d329a9f133fa4ae9e66b97c174b05d6821d4ed
Configuration menu - View commit details
-
Copy full SHA for 89cb980 - Browse repository at this point
Copy the full SHA 89cb980View commit details -
Rollforward https://github.com/rules_cc/bazel/commit/0769eb3cec5ae57b…
…02c1f34709643f7cc872af21: Starlarkify parse header action creation and compile build variable construction PiperOrigin-RevId: 794108507 Change-Id: I0a253f1868834c7b8154a8530fbd671c853fa236
Configuration menu - View commit details
-
Copy full SHA for 879d73b - Browse repository at this point
Copy the full SHA 879d73bView commit details
Commits on Aug 13, 2025
-
Add a raw_allowlist_include_directories cc_toolchain top argument
Copybara Import from #450 BEGIN_PUBLIC Add a raw_allowlist_include_directories cc_toolchain top argument (#450) Apple toolchain declaration in bazel are inherently non-hermetic from a bazel perspective, as they rely on the system's Xcode installation. As a result, apple_support currently make use of cxx_builtin_include_directories to add known system directories, as seen in the toolchain declaration here: https://github.com/bazelbuild/apple_support/blob/master/crosstool/osx_cc_configure.bzl#L136 This currently cannot be done in rules based toolchain, as the allowlist_include_directories argument in cc_args() requires a DirectoryInfo provider. In this change, we're adding a new top-level raw_allowlist_include_directories parameter to the cc_toolchain() macro and to the underlying cc_toolchain_config() rule. This parameter will act just like the existing one, but will accept raw strings that will be added directly to cxx_builtin_include_directories. Fixes #242 Closes #450 END_PUBLIC COPYBARA_INTEGRATE_REVIEW=#450 from ma-oli:raw_allowlist_include_directories d4076e4 PiperOrigin-RevId: 794358089 Change-Id: I92e622b549fb38fd1f798efaeb119afcefc4ccb7
Configuration menu - View commit details
-
Copy full SHA for e8422d3 - Browse repository at this point
Copy the full SHA e8422d3View commit details
Commits on Aug 19, 2025
-
Use
includesinstead ofsystem_includesforincludesattrPreviously even though the attribute was named `includes` it was passed through the `system_includes` field of the compilation context. This resulted in toolchains passing these include paths with `-isystem`, which is unexpected if you use this for first party code. Many non bazel-first projects have header directory structures that require custom include paths be propagated throughout the graph, the alternative to `includes` is to use `strip_include_prefix`. The downside of `strip_include_prefix` is that you add 1 include path per `cc_library`, even if the libraries are in the same package. With `includes` these are deduplicated. In the case of LLVM using `includes` reduced the number of search paths on the order of hundreds. If users want to use `-isystem` for third party code that uses `includes`, they can pass `--features=external_include_paths --host_features=external_include_paths` If there are first party libraries users want to use `-isystem` with, they can use `features = ["system_include_paths"]` Fixes bazelbuild/bazel#20267 RELNOTES[INC]: Use `-I` instead of `-isystem` for `cc_library` / `cc_binary` `includes` attr. To use `-isystem` for only external repositories, you can pass `--features=external_include_paths --host_features=external_include_paths`. To use `-isystem` for a single `cc_library` / `cc_binary` `includes`, you can set `features = ["system_include_paths"],` on the target Closes #25750. PiperOrigin-RevId: 797026593 Change-Id: Icdb8f1340e683b04687a029a80b994bf433de5b0
Configuration menu - View commit details
-
Copy full SHA for c809f44 - Browse repository at this point
Copy the full SHA c809f44View commit details
Commits on Aug 20, 2025
-
Copybara Import from #464 BEGIN_PUBLIC Add dwp cc_action_type (#464) This corresponds to bazelbuild/bazel@999e50f so you can use fission with a rules based toolchain by adding dwp to your tools. Closes #464 END_PUBLIC COPYBARA_INTEGRATE_REVIEW=#464 from keith:ks/add-dwp-cc_action_type 5651be3 PiperOrigin-RevId: 797085344 Change-Id: Ia3588e041358fe89c3cb68a7527bd0f8b1e97e67
Configuration menu - View commit details
-
Copy full SHA for 8827fd4 - Browse repository at this point
Copy the full SHA 8827fd4View commit details
Commits on Aug 21, 2025
-
Prepare for Starlark
CcToolchainConfigInfo- Make all starlark accessible members struct fields. This is necessary because the config is written to a file via `proto.encode_text` which errors out on functions for `StarlarkInfo`. (`NativeInfo` is special-cased to ignore methods) - Stop converting tool paths and make variables to pairs/tuples to match the eventual Starlark implementation. - Update tests to access `CcToolchainConfigInfo` via the provider type instance instead of the provider key. This will allow using a `StarlarkProviderWrapper` for the Starlarkified provider. PiperOrigin-RevId: 797683393 Change-Id: Icbc8d6c9b115a576bde3b1c3a9f2e753738969b3
Configuration menu - View commit details
-
Copy full SHA for 02a9a1c - Browse repository at this point
Copy the full SHA 02a9a1cView commit details
Commits on Aug 22, 2025
-
Add
requires-darwinin default test runnerCopybara Import from #421 BEGIN_PUBLIC Add `requires-darwin` in default test runner (#421) This was missed in 5202ddc for parity with the legacy `cc_test` flow. Closes #421 END_PUBLIC COPYBARA_INTEGRATE_REVIEW=#421 from fmeum:test-toolchain-requires-darwin 94ebaa9 PiperOrigin-RevId: 798224481 Change-Id: Iba80d7fec417293aaf556173d4be637eb6d4c261
Configuration menu - View commit details
-
Copy full SHA for 2ed6b8d - Browse repository at this point
Copy the full SHA 2ed6b8dView commit details
Commits on Aug 25, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 4702f68 - Browse repository at this point
Copy the full SHA 4702f68View commit details -
Add toolchain runtime dependencies to the linking context of cc_library.
PiperOrigin-RevId: 799242996 Change-Id: I0e1b42032d6315f12f82a35c7468ce9a0b848272
Configuration menu - View commit details
-
Copy full SHA for 6fcfaee - Browse repository at this point
Copy the full SHA 6fcfaeeView commit details
Commits on Aug 26, 2025
-
Run
rules_ccCI tasks on the right platformsPiperOrigin-RevId: 799534222 Change-Id: Ic8f83a98849fc0cffb10672520b5e51fbfec516e
Configuration menu - View commit details
-
Copy full SHA for b3f16eb - Browse repository at this point
Copy the full SHA b3f16ebView commit details -
Fix
rules_ccbzl_librarydeps for stardocFixes #454 PiperOrigin-RevId: 799544215 Change-Id: Ie6bd57e5adf05fe008e92cab2aec83b55ce4d080
Configuration menu - View commit details
-
Copy full SHA for e8327fa - Browse repository at this point
Copy the full SHA e8327faView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.2.0...0.2.1