diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-26 16:20:16 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-26 16:23:15 +0900 |
| commit | 2548a681e9a1e28c52805397edeccf719ec8ab45 (patch) | |
| tree | 06202347c5762d8c1e05e4cc668829e633411d2c /internal/rosa/cmake.go | |
| parent | d514d0679fcd947cd10f7ba9d0418855515c19d5 (diff) | |
internal/rosa: key-value type
This type is used very frequently. The new type is much easier to type and can receive helper methods eventually if needed.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/cmake.go')
| -rw-r--r-- | internal/rosa/cmake.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/rosa/cmake.go b/internal/rosa/cmake.go index 5e52fb2f..e7abffde 100644 --- a/internal/rosa/cmake.go +++ b/internal/rosa/cmake.go @@ -25,7 +25,7 @@ func (t Toolchain) newCMake() (pkg.Artifact, string) { // expected to be writable in the copy made during bootstrap Chmod: true, - Patches: [][2]string{ + Patches: []KV{ {"bootstrap-test-no-openssl", `diff --git a/Tests/BootstrapTest.cmake b/Tests/BootstrapTest.cmake index 137de78bc1..b4da52e664 100644 --- a/Tests/BootstrapTest.cmake @@ -88,7 +88,7 @@ index 2ead810437..f85cbb8b1c 100644 OmitDefaults: true, ConfigureName: "/usr/src/cmake/bootstrap", - Configure: [][2]string{ + Configure: []KV{ {"prefix", "/system"}, {"parallel", `"$(nproc)"`}, {"--"}, @@ -125,7 +125,7 @@ type CMakeHelper struct { Append []string // CMake CACHE entries. - Cache [][2]string + Cache []KV // Runs after install. Script string @@ -170,7 +170,7 @@ func (*CMakeHelper) wantsDir() string { return "/cure/" } func (attr *CMakeHelper) script(name string) string { if attr == nil { attr = &CMakeHelper{ - Cache: [][2]string{ + Cache: []KV{ {"CMAKE_BUILD_TYPE", "Release"}, }, } |
