llvm_add()

def llvm_add(name, version, toolchain_name, visibility)

Add LLVM to your sysroot.

Sets LLVM_SPACES_WORKSPACE to the workspace root and adds a cmake toolchain file with the specified name. The toolchain file needs LLVM_SPACES_WORKSPACE set to work correctly.

Args

  • name: string: The name of the rule.
  • version: string: The LLVM version from //@packages/star/llvm/llvm
  • toolchain_name: string: The name of the toolchain file (default is “llvm-toolchain.cmake”).
  • visibility: Rule visibility. See visibility.star for more info.