I added an action_config with the tool path set to my toolchains. Know I can get the tool using cc_common.get_tool_for_action()
. Along with the executable, the custom rule needs a .ctl script file. This seems like a tool to me also. Problem is, you can only have a single tool for an action? How are people handling things like this? Where is the flexibility?
generate_ctdt = action_config(
action_name = "generate_ctdt",
tools = [
tool(path = "some_path/tclsh.exe"),
],
)
actions_configs = [generate_ctdt]
return cc_common.create_cc_toolchain_config_info(
ctx = ctx,
actions_configs = action_configs,
...