aboutsummaryrefslogtreecommitdiffstats
path: root/cc/config/toolchain.go
diff options
context:
space:
mode:
Diffstat (limited to 'cc/config/toolchain.go')
-rw-r--r--cc/config/toolchain.go16
1 files changed, 2 insertions, 14 deletions
diff --git a/cc/config/toolchain.go b/cc/config/toolchain.go
index 796ccfb6..471db1de 100644
--- a/cc/config/toolchain.go
+++ b/cc/config/toolchain.go
@@ -199,20 +199,6 @@ func addPrefix(list []string, prefix string) []string {
return list
}
-func indexList(s string, list []string) int {
- for i, l := range list {
- if l == s {
- return i
- }
- }
-
- return -1
-}
-
-func inList(s string, list []string) bool {
- return indexList(s, list) != -1
-}
-
func SanitizerRuntimeLibrary(t Toolchain, sanitizer string) string {
arch := t.SanitizerRuntimeLibraryArch()
if arch == "" {
@@ -243,3 +229,5 @@ func ToolPath(t Toolchain) string {
}
return filepath.Join(t.GccRoot(), t.GccTriple(), "bin")
}
+
+var inList = android.InList