File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
utils/swift-xcodegen/Sources/SwiftXcodeGen/BuildArgs Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,14 @@ struct SwiftTargets {
124
124
// A relative path is for a file in the build directory, it's external.
125
125
let abs = buildDir. path. appending ( r)
126
126
guard abs. exists else { continue }
127
- sources. externalSources. append ( abs)
127
+ sources. externalSources. append ( abs. realPath )
128
128
129
129
case . absolute( let a) :
130
- guard a. exists, let rel = a. removingPrefix ( buildDir. repoPath) else {
130
+ guard a. exists else { continue }
131
+ // Symlinks shouldn't really be a concern here, but we need to realpath
132
+ // in order to canonicalize the casing.
133
+ let a = a. realPath
134
+ guard let rel = a. removingPrefix ( buildDir. repoPath) else {
131
135
sources. externalSources. append ( a)
132
136
continue
133
137
}
You can’t perform that action at this time.
0 commit comments