79372918

Date: 2025-01-20 23:57:36
Score: 2.5
Natty:
Report link

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,
    ...
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Eric Stoces