File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Sources/SwiftSDKGenerator/Generator Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,17 @@ extension SwiftSDKGenerator {
147
147
try await fs. unpack ( file: tmpDir. appending ( fileName) , into: sdkDirPath)
148
148
}
149
149
}
150
+
151
+ // Make sure we have /lib and /lib64, and if not symlink from /usr
152
+ // This makes building from packages more consistent with copying from the Docker container
153
+ let libDirectories = [ " lib " , " lib64 " ]
154
+ for dir in libDirectories {
155
+ let sdkLibPath = sdkDirPath. appending ( dir)
156
+ let sdkUsrLibPath = sdkDirPath. appending ( " usr/ \( dir) " )
157
+ if !doesFileExist( at: sdkLibPath) && doesFileExist ( at: sdkUsrLibPath) {
158
+ try createSymlink ( at: sdkLibPath, pointingTo: FilePath ( " ./usr/ \( dir) " ) )
159
+ }
160
+ }
150
161
}
151
162
152
163
func downloadFiles(
You can’t perform that action at this time.
0 commit comments