File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -82,15 +82,15 @@ private struct WrappedClangTargetBuildDescription: BuildTarget {
82
82
}
83
83
84
84
var resources : [ URL ] {
85
- return description. resources. map { URL ( fileURLWithPath : $0 . path. pathString ) }
85
+ return description. resources. map ( \ . path. asURL )
86
86
}
87
87
88
88
var ignored : [ URL ] {
89
- return description. ignored. map { URL ( fileURLWithPath : $0 . pathString ) }
89
+ return description. ignored. map ( \ . asURL )
90
90
}
91
91
92
92
var others : [ URL ] {
93
- return description. others. map { URL ( fileURLWithPath : $0 . pathString ) }
93
+ return description. others. map ( \ . asURL )
94
94
}
95
95
96
96
public var name : String {
@@ -129,21 +129,21 @@ private struct WrappedSwiftTargetBuildDescription: BuildTarget {
129
129
}
130
130
131
131
var sources : [ URL ] {
132
- return description. sources. map { URL ( fileURLWithPath : $0 . pathString ) }
132
+ return description. sources. map ( \ . asURL )
133
133
}
134
134
135
135
var headers : [ URL ] { [ ] }
136
136
137
137
var resources : [ URL ] {
138
- return description. resources. map { URL ( fileURLWithPath : $0 . path. pathString ) }
138
+ return description. resources. map ( \ . path. asURL )
139
139
}
140
140
141
141
var ignored : [ URL ] {
142
- return description. ignored. map { URL ( fileURLWithPath : $0 . pathString ) }
142
+ return description. ignored. map ( \ . asURL )
143
143
}
144
144
145
145
var others : [ URL ] {
146
- return description. others. map { URL ( fileURLWithPath : $0 . pathString ) }
146
+ return description. others. map ( \ . asURL )
147
147
}
148
148
149
149
func compileArguments( for fileURL: URL ) throws -> [ String ] {
Original file line number Diff line number Diff line change @@ -36,21 +36,21 @@ struct PluginTargetBuildDescription: BuildTarget {
36
36
}
37
37
38
38
var sources : [ URL ] {
39
- return target. sources. paths. map { URL ( fileURLWithPath : $0 . pathString ) }
39
+ return target. sources. paths. map ( \ . asURL )
40
40
}
41
41
42
42
var headers : [ URL ] { [ ] }
43
43
44
44
var resources : [ URL ] {
45
- return target. underlying. resources. map { URL ( fileURLWithPath : $0 . path. pathString ) }
45
+ return target. underlying. resources. map ( \ . path. asURL )
46
46
}
47
47
48
48
var ignored : [ URL ] {
49
- return target. underlying. ignored. map { URL ( fileURLWithPath : $0 . pathString ) }
49
+ return target. underlying. ignored. map ( \ . asURL )
50
50
}
51
51
52
52
var others : [ URL ] {
53
- return target. underlying. others. map { URL ( fileURLWithPath : $0 . pathString ) }
53
+ return target. underlying. others. map ( \ . asURL )
54
54
}
55
55
56
56
var name : String {
You can’t perform that action at this time.
0 commit comments