Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 2.28 KB

File metadata and controls

48 lines (29 loc) · 2.28 KB

This module implements the language-specific toolchain rule.

lua_toolchain

lua_toolchain(name, dev_files, target_tool, target_tool_path)

Defines a lua compiler/runtime toolchain.

For usage see https://docs.bazel.build/versions/main/toolchains.html#defining-toolchains.

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
dev_files lua output libs and include directories List of labels optional []
target_tool A hermetically downloaded executable target for the target platform. Label optional None
target_tool_path Path to an existing executable for the target platform. String optional ""

LuaInfo

LuaInfo(target_tool, target_tool_path, tool_files, headers)

Information about how to invoke the tool executable.

FIELDS

Name Description
target_tool label of generated lua path. Should prefer this over target_tool_path
target_tool_path absolute path to the tool executable for the target platform. should only be used if using system lua
tool_files Files required in runfiles to make the tool executable available.

May be empty if the target_tool_path points to a locally installed tool binary.
headers Lua header dir