Accessing toolchain action config within custom rule

128 views
Skip to first unread message

Marc Allen

unread,
Jul 29, 2024, 2:35:39 AMJul 29
to bazel-...@googlegroups.com
Hello,

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
Reply all
Reply to author
Forward
0 new messages