aboutsummaryrefslogtreecommitdiffstats
path: root/cc/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'cc/util.go')
-rw-r--r--cc/util.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/util.go b/cc/util.go
index efc89f05..2fc717b7 100644
--- a/cc/util.go
+++ b/cc/util.go
@@ -24,12 +24,12 @@ import (
// Efficiently converts a list of include directories to a single string
// of cflags with -I prepended to each directory.
-func includeDirsToFlags(dirs []string) string {
- return common.JoinWithPrefix(dirs, "-I")
+func includeDirsToFlags(dirs common.Paths) string {
+ return common.JoinWithPrefix(dirs.Strings(), "-I")
}
-func includeFilesToFlags(dirs []string) string {
- return common.JoinWithPrefix(dirs, "-include ")
+func includeFilesToFlags(files common.Paths) string {
+ return common.JoinWithPrefix(files.Strings(), "-include ")
}
func ldDirsToFlags(dirs []string) string {