forked from rosa/hakurei
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>
This commit is contained in:
@@ -26,11 +26,8 @@ func (*MakeMakerHelper) wantsWrite() bool { return true }
|
||||
// scriptEarly is a noop.
|
||||
func (*MakeMakerHelper) scriptEarly() string { return "" }
|
||||
|
||||
// createDir returns false.
|
||||
func (*MakeMakerHelper) createDir() bool { return false }
|
||||
|
||||
// wantsDir returns the zero value.
|
||||
func (*MakeMakerHelper) wantsDir() string { return "" }
|
||||
// wantsDir requests the source directory.
|
||||
func (*MakeMakerHelper) wantsDir() (string, bool) { return "", false }
|
||||
|
||||
// script generates Makefile.PL-based build and test commands.
|
||||
func (attr *MakeMakerHelper) script(t Toolchain, _ string) string {
|
||||
|
||||
Reference in New Issue
Block a user