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 {
124124 // A relative path is for a file in the build directory, it's external.
125125 let abs = buildDir. path. appending ( r)
126126 guard abs. exists else { continue }
127- sources. externalSources. append ( abs)
127+ sources. externalSources. append ( abs. realPath )
128128
129129 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 {
131135 sources. externalSources. append ( a)
132136 continue
133137 }
You can’t perform that action at this time.
0 commit comments