diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-07-09 10:08:08 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-07-09 10:08:08 +0900 |
| commit | 237e793895d276f9b78195ed59f36c15c8b5d86f (patch) | |
| tree | 9ad5cba55564471880183b8039ef10de8bb51e43 /internal/rosa/cmake.go | |
| parent | 6cfd8fb93484b5683f4a59f84b5bf5b0dde208a2 (diff) | |
internal/rosa: respect preferred loadavg target
This generally improves build performance and system responsiveness.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/cmake.go')
| -rw-r--r-- | internal/rosa/cmake.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/cmake.go b/internal/rosa/cmake.go index b058b5bf..6470758a 100644 --- a/internal/rosa/cmake.go +++ b/internal/rosa/cmake.go @@ -61,10 +61,10 @@ func (attr *CMakeHelper) script(t Toolchain, name string) string { } generate := "Ninja" - test := "ninja " + jobsFlagE + " test" + test := "ninja " + jobsFlagE + " " + loadFlagE + " test" if attr.Make { generate = "'Unix Makefiles'" - test = "make " + jobsFlagE + " test" + test = "make " + jobsFlagE + " " + loadFlagE + " test" } if attr.Test != "" { test = attr.Test @@ -97,7 +97,7 @@ cmake -G ` + generate + ` \ }), " \\\n\t") + ` \ -DCMAKE_INSTALL_PREFIX=/system \ '/usr/src/` + name + `/` + filepath.Join(attr.Append...) + `' -cmake --build . --parallel=` + jobsE + ` +cmake --build . --parallel=` + jobsE + ` -- ` + loadFlagE + ` DESTDIR=/work cmake --install . ` + script } |
