diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-21 16:10:55 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-21 16:11:38 +0900 |
| commit | 6546ddc64bcbf73c7419bac7af596b924005dbc3 (patch) | |
| tree | 5e09262421b52a2ce626200c79d67f36fac74b94 /internal/rosa/cmake.go | |
| parent | cbf18b302d51c3e667ebe06cfebb14b90ccc93b7 (diff) | |
internal/rosa: expose in-place behaviour in generic helper
This change also combines the createDir and wantsDir methods, and replaces the non-inplace target of the generic helper with a deterministic path.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/cmake.go')
| -rw-r--r-- | internal/rosa/cmake.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/rosa/cmake.go b/internal/rosa/cmake.go index cbce846e..10b2afc0 100644 --- a/internal/rosa/cmake.go +++ b/internal/rosa/cmake.go @@ -48,11 +48,8 @@ func (*CMakeHelper) wantsWrite() bool { return false } // scriptEarly returns the zero value. func (*CMakeHelper) scriptEarly() string { return "" } -// createDir returns true. -func (*CMakeHelper) createDir() bool { return true } - // wantsDir returns a hardcoded, deterministic pathname. -func (*CMakeHelper) wantsDir() string { return "/cure/" } +func (*CMakeHelper) wantsDir() (string, bool) { return "/cure/", true } // script generates the cure script. func (attr *CMakeHelper) script(t Toolchain, name string) string { |
