Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0aafcbfd authored by Paul Duffin's avatar Paul Duffin
Browse files

Add StringsRelativeToTop

Needed for some follow up changes.

Bug: 183650682
Test: m nothing
Change-Id: Ic14cb4f4592d887dd897989482d540e12065c0fe
parent a5b8135b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1051,3 +1051,9 @@ func StringPathsRelativeToTop(soongOutDir string, paths []string) []string {
func StringRelativeToTop(config Config, command string) string {
	return normalizeStringRelativeToTop(config, command)
}

// StringsRelativeToTop will return a new slice such that each item in the new slice is the result
// of calling StringRelativeToTop on the corresponding item in the input slice.
func StringsRelativeToTop(config Config, command []string) []string {
	return normalizeStringArrayRelativeToTop(config, command)
}