Keith Smiley
Keith Smiley
Mirror of https://github.com/bazelbuild/bazel/pull/26327
Previously textual_hdrs paths were eagerly fetched which breaks path stripping. This wires these headers up separately to treat them like hdrs. Fixes https://github.com/bazelbuild/bazel/issues/27718
Looks like the original issue is fixed here
When very recent versions of bazel, improvements in the merkle tree recommend that instead of passing a huge list of files to the toolchain, you instead pass the root directory...
[repro.zip](https://github.com/user-attachments/files/24062453/repro.zip) With this BUILD file in the root of the repo: ```bzl load("@rules_cc//cc:defs.bzl", "cc_library") cc_library( name = "lib", srcs = ["lib.cc"], additional_compiler_inputs = [ "foo.txt", ], copts = [ "-std=c++23",...
Fixes https://github.com/bazelbuild/rules_cc/issues/419
https://github.com/bazelbuild/rules_cc/blob/285fdce428cf3c5cf8e35c9f0ac4247e8e27ec58/cc/private/cc_common.bzl#L675 this code relies on cc_common having expand_and_tokenize, but that wasn't the case until https://github.com/bazelbuild/bazel/commit/eb1bba007113890f60c214929d02237554a299af#diff-538c699a2bb42c3a1c7436b75fa3390c18d8ce0718d6805d03118a067e28d800 which isn't present in bazel 8.4.2, leading to this code failing at that point. I...
``` clang -xc++-header -fsyntax-only -c foo.h clang: warning: argument unused during compilation: '-c' [-Wunused-command-line-argument] ``` This just no longer passes the `-c` to the header parsing action
Bazel has quite a few "marker" type features where their presence in the toolchain is used as a signal that it supports some configuration. Here are a few examples: https://github.com/bazelbuild/apple_support/blob/af8d93a33586c80bf2d245922ce31fcd109fe645/crosstool/cc_toolchain_config.bzl#L2666-L2678...
A common pattern in the previous CC toolchain was to have some compile flags split on dbg/fastbuild/opt. I don't see any docs or examples of how to do that with...