bazel aquery //cc_shared_lib/liba:liba_base --include_commandline --include_param_files should include expanded content of all param files in its output. However, for CppCompile actions, param files are not expanded.
Reproducer:
git clone https://github.com/peakschris/bazel-shared-lib-bug (ignore the repo name)
cd bazel-shared-lib-bug
bazel aquery //cc_shared_lib/liba:liba_base --include_commandline --include_param_files
CppCompileAction is a special action. I believe this will be resolved once it is transformed into a regular Spawn action (something that has already been done for linking action).
Description of the bug:
bazel aquery //cc_shared_lib/liba:liba_base --include_commandline --include_param_files
should include expanded content of all param files in its output. However, for CppCompile actions, param files are not expanded.Reproducer:
Outputs:
Note, the params file is not expanded for the CppCompile action. The link action does include the expanded params file.
Which category does this issue belong to?
C++ Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
Windows
What is the output of
bazel info release
?bazel 7.3.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response