From 3826621b21ae2936c76d07f2ce934215dc89abd0 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 2 May 2026 22:15:37 +0900 Subject: [PATCH] internal/rosa/python: lit artifact Used by LLVM-related projects. Signed-off-by: Ophestra --- internal/rosa/all.go | 1 + internal/rosa/python.go | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 6f0aefcc..ec4241f2 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -72,6 +72,7 @@ const ( HakureiDist IPTables Kmod + LIT LibXau Libbsd Libcap diff --git a/internal/rosa/python.go b/internal/rosa/python.go index b9318386..500d14fc 100644 --- a/internal/rosa/python.go +++ b/internal/rosa/python.go @@ -351,6 +351,29 @@ func init() { ) } +func init() { + artifactsM[LIT] = Metadata{ + f: func(t Toolchain) (pkg.Artifact, string) { + version := t.Version(LLVM) + return t.NewPackage("lit", version, t.Load(llvmSource), nil, &PipHelper{ + Append: []string{"llvm", "utils", "lit"}, + // already checked during llvm + SkipCheck: true, + }, + PythonSetuptools, + ), version + }, + + Name: "lit", + Description: "a portable tool for executing LLVM and Clang style test suites", + Website: "https://llvm.org/docs/CommandGuide/lit.html", + + Dependencies: P{ + Python, + }, + } +} + func init() { const ( version = "1.1.1"