@imp/rules/c/mold
Module: @imp/rules/c/mold.
MOLD
Documentation is not yet available for this implementation export.
Source: rules/c/mold/index.luau:20.
artifact_name(version, plat)
The mold release archive filename for a version and platform.
Source: rules/c/mold/index.luau:38.
cache_key(version, plat)
The named-cache key for a mold version and platform.
Source: rules/c/mold/index.luau:58.
default_graph_toolchain()
The graph-native mold toolchain of the default version, or nil when no default is declared.
Source: rules/c/mold/index.luau:158.
default_version
Documentation is not yet available for this implementation export.
Source: rules/c/mold/index.luau:221.
download_url(version, plat)
The mold release download URL for a version and platform.
Source: rules/c/mold/index.luau:44.
graph_tool(version)
Declare the install of a mold version and return its tool handle. The
task downloads the release archive, verifies it against the lockfile of
the version, and extracts it into the mold-toolchains named cache.
Source: rules/c/mold/index.luau:73.
graph_toolchain(version)
The graph-native mold toolchain of a version, or of the default:
{ tool, version }.
Source: rules/c/mold/index.luau:151.
mold_toolchain(version, options)
Declare a mold toolchain version.
Options: default Make this version the default. unverified Download without a lockfile entry, with a warning. lockfile Address of a lockfile to use instead of the shipped one, for example "@workspace/locks/mold.lock".
Returns { version, lockfile, [GEN_LOCKFILES] }. Export the value from a
BUILD module to make its lockfile root selectable by
imp goal gen-lockfiles.
Source: rules/c/mold/index.luau:124.
odin_linker_env(exec, mold_tool)
The flags and PATH directories that make Odin link with mold. Odin runs its linker by name, so mold must be on PATH.
Source: rules/c/mold/index.luau:183.
reset_for_test()
Forget each declared version and the default. Tests call this, because the module declares a default when it loads.
Source: rules/c/mold/index.luau:192.
resolve_version
Documentation is not yet available for this implementation export.
Source: rules/c/mold/index.luau:230.
rust_linker_env(exec, mold_tool)
The rustflags and PATH directories that make rustc link with mold.
The Bootlin-built gcc rejects an absolute -fuse-ld=<path>, so the
flag keeps the bare -fuse-ld=mold form. path_dirs has the absolute
bin directory of mold, for the caller to add to PATH.
Source: rules/c/mold/index.luau:174.
supported_platforms()
The platforms that mold publishes release archives for.
Source: rules/c/mold/index.luau:49.