summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* llvm-utils.eclass: Fix llvm_prepend_path to avoid duplicatesMichał Górny2024-02-101-4/+6
| | | | | | | | | | Fix llvm_prepend_path() not to append the new path multiple times, if the original PATH variable contained multiple LLVM directories. Thanks to Alexander Miller who spotted it in: https://github.com/gentoo/gentoo/pull/35196#discussion_r1480330001 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm-utils.eclass: Split out PATH prepending logicMichał Górny2024-02-101-0/+36
| | | | | | | Split the logic prepending PATH from pkg_setup() into a dedicated llvm_prepend_path() function. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm-utils.eclass: Introduce an eclass for common helpersMichał Górny2024-02-101-0/+115
Move some reusable functions from llvm.eclass to llvm-utils.eclass. This is with minimal modifications so far (only argument checks were cleaned up). Signed-off-by: Michał Górny <mgorny@gentoo.org>