We have custom C++ compilation rule which invokes cc_common.compile. To test that rule we enable “compiler_param_file” toolchain feature in order to examine generated param file for the presence of expected compiler options. Unfortunately when the compilation is cached the object file is taken from the cache, but param file is not, probably as it is not included in the list of compilation action outputs.
The question: how to get param file reliably?
First thing which come to mind is to disable caching for this particular rule by adding “no-cache” tag to it. It does not work because I believe the tag must be translated to corresponding “execution_requirements” on actions.run and I don’t see a way to pass execution_requirements to cc_common.compile.
We probably can use command line switch “--modify_execution_info=CppCompile=no-cache” but it would affect ALL compilations while we need it for one.
Any ideas?
Thank you!
Konstantin
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/e70e8a2c-d0bd-4ec3-a8c4-f6847279b9b7n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/3659ce30-e387-436a-8779-86164eccc984n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/38dabf8c-7c93-4476-88bc-15d10c2dd2d0n%40googlegroups.com.