summaryrefslogtreecommitdiff
path: root/android/base_module_context.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/base_module_context.go')
-rw-r--r--android/base_module_context.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/android/base_module_context.go b/android/base_module_context.go
index e24ce9d2b..7fa58766f 100644
--- a/android/base_module_context.go
+++ b/android/base_module_context.go
@@ -17,6 +17,7 @@ package android
import (
"fmt"
"regexp"
+ "slices"
"strings"
"github.com/google/blueprint"
@@ -562,7 +563,7 @@ func (b *baseModuleContext) WalkDepsProxy(visit func(ModuleProxy, ModuleProxy) b
}
func (b *baseModuleContext) GetWalkPath() []Module {
- return b.walkPath
+ return slices.Clone(b.walkPath)
}
func (b *baseModuleContext) GetTagPath() []blueprint.DependencyTag {