aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/llvm.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/llvm.go')
-rw-r--r--internal/rosa/llvm.go52
1 files changed, 35 insertions, 17 deletions
diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go
index 0758183e..38468783 100644
--- a/internal/rosa/llvm.go
+++ b/internal/rosa/llvm.go
@@ -8,7 +8,25 @@ import (
"hakurei.app/internal/pkg"
)
-// litArgs returns [LIT] arguments for optional verbosity and check skipping.
+var (
+ llvmSource = H("llvm-project")
+ muslHeaders = H("musl-headers")
+ earlyCompilerRT = H("early-compiler-rt")
+ earlyRuntimes = H("early-runtimes")
+ musl = H("musl")
+
+ bash = H("bash")
+ gawk = H("gawk")
+ coreutils = H("coreutils")
+ diffutils = H("diffutils")
+ findutils = H("findutils")
+
+ zlib = H("zlib")
+ zstd = H("zstd")
+ kernelHeaders = H("kernel-headers")
+)
+
+// litArgs returns LIT arguments for optional verbosity and check skipping.
func litArgs(verbose bool, skipChecks ...string) string {
args := []string{"-sv"}
if verbose {
@@ -36,7 +54,7 @@ func init() {
Description: "early LLVM runtime: compiler-rt",
Dependencies: P{
- Musl,
+ musl,
},
}
_meta, source := t.MustLoad(llvmSource)
@@ -91,7 +109,7 @@ ln -s \
Python,
muslHeaders,
- KernelHeaders,
+ kernelHeaders,
)
})
@@ -146,10 +164,10 @@ ln -s \
},
Python,
- Zlib,
- Zstd,
+ zlib,
+ zstd,
earlyCompilerRT,
- KernelHeaders,
+ kernelHeaders,
)
})
@@ -180,9 +198,9 @@ ln -s \
Website: "https://llvm.org",
Dependencies: P{
- Zlib,
- Zstd,
- Musl,
+ zlib,
+ zstd,
+ musl,
},
}
_meta, source := t.MustLoad(llvmSource)
@@ -335,16 +353,16 @@ ninja ` + jobsFlagE + ` check-all
},
Python,
Perl,
- Diffutils,
- Bash,
- Gawk,
- Coreutils,
- Findutils,
+ diffutils,
+ bash,
+ gawk,
+ coreutils,
+ findutils,
- Zlib,
- Zstd,
+ zlib,
+ zstd,
early,
- KernelHeaders,
+ kernelHeaders,
)
})