diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-26 20:43:16 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-27 00:36:46 +0900 |
| commit | 645cd94efc970b7ecacefc29fe78153608ade11d (patch) | |
| tree | 37aa2d130777774d9750b170744ec6a17e8c61ca /internal/rosa/cmake.go | |
| parent | fe25e7f1d85422c4eae8204c24a5057e15734eb5 (diff) | |
internal/rosa: remove /usr/src
There is only one primary source directory per package, so naming the
directory after the package makes little sense, and introduces many
complications and ugliness of having to refer to their own name. This
change also moves extras to /extra, preserving the relative pathnames.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/cmake.go')
| -rw-r--r-- | internal/rosa/cmake.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/rosa/cmake.go b/internal/rosa/cmake.go index 1266527f..ccb128aa 100644 --- a/internal/rosa/cmake.go +++ b/internal/rosa/cmake.go @@ -76,7 +76,7 @@ func (*CMakeHelper) scriptEarly() string { return "" } func (*CMakeHelper) wantsDir() (string, bool) { return "/cure/", true } // script generates the cure script. -func (attr *CMakeHelper) script(t Toolchain, name string) string { +func (attr *CMakeHelper) script(t Toolchain, _ string) string { if attr == nil { attr = new(CMakeHelper) } @@ -140,7 +140,7 @@ cmake -G ` + generate + ` \ } }), " \\\n\t") + ` \ -DCMAKE_INSTALL_PREFIX=` + Prefix + ` \ - '/usr/src/` + name + `/` + filepath.Join(attr.Append...) + `' + '/source/` + filepath.Join(attr.Append...) + `' cmake --build . --parallel=` + jobsE + ` -- ` + loadFlagE + ` DESTDIR=/work cmake --install . ` + script |
