llvm-utils.eclass

Name

llvm-utils.eclass -- Common utility functions for building against installed LLVM

Description

The utility eclass providing shared functions reused between llvm.eclass and llvm-r1.eclass. It may also be used directly in ebuilds.

Supported EAPIs

7 8 9

Functions

llvm_tuple_to_target [<tuple>]

Translate a tuple into a target suitable for LLVM_TARGETS. Defaults to ${CHOST} if not specified.

llvm_fix_clang_version <variable-name>...

Fix the clang compiler name in specified variables to include the major version, to prevent PATH alterations from forcing an older clang version being used.

llvm_fix_tool_path <variable-name>...

Fix the LLVM tools referenced in the specified variables to their current location, to prevent PATH alterations from forcing older versions being used.

llvm_prepend_path [-b|-d] <slot>

Prepend the path to the specified LLVM slot to PATH variable, and reexport it.

With no option or "-d", the path is prefixed by ESYSROOT. LLVM dependencies should be in DEPEND then.

With "-b" option, the path is prefixed by BROOT. LLVM dependencies should be in BDEPEND then.

llvm_cmake_use_musl

Determine whether the given LLVM project should be built with musl support. That should be the case if the CTARGET (or CHOST) is a musl environment.

If musl should be used, echo "ON", otherwise echo "OFF".

Authors

Michał Górny <mgorny@gentoo.org>

Maintainers

Michał Górny <mgorny@gentoo.org>

Reporting Bugs

Please report bugs via https://bugs.gentoo.org/