Skip to content

//mojo:toolchain.bzl

This file declares the mojo_toolchain rule.

mojo_toolchain

mojo_toolchain(name, LD_LIBRARY_PATH, MODULAR_HOME, MOJO_CC_PATH, MOJO_COMPILER,
               MOJO_PYTHON_LIBRARY, symbolizer)

Attributes

NameDescription
nameName, required.

A unique name for this target.
LD_LIBRARY_PATHLabel, optional, defaults to None.

-
MODULAR_HOMELabel, optional, defaults to None.

-
MOJO_CC_PATHLabel, optional, defaults to None.

-
MOJO_COMPILERLabel, optional, defaults to None.

The path to the mojo compiler.
MOJO_PYTHON_LIBRARYLabel, optional, defaults to None.

-
symbolizerLabel, optional, defaults to “@llvm-project//llvm:llvm-symbolizer ”.

The llvm-symbolizer.