I have been looking through the docs and code to find an answer to this question, but nothing is jumping out…
I’m writing a custom rule in Skylark, and in the rule I would like to access the current toolchain action definitions that were created via cc_common.create_cc_toolchain_config_info(), essential the contents of the action_configs argument. Is there any way to do this within a custom rule?
I would imagine that an aspect could do this, but I suspect for my use case it would create a circular dependency. I’m interested in the action definition for the current C++ toolchain independent of a given target.
Thanks,
Marc