Skip to content

Commit b54d4a2

Browse files
committed
review fix
1 parent 0ebe975 commit b54d4a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ extension GenericUnixToolchain {
157157
if !isEmbeddedEnabled && !parsedOptions.hasArgument(.nostartfiles) {
158158
let rsrc: VirtualPath
159159
// Prefer the swiftrt.o runtime file from the SDK if it's specified.
160-
if let sdk = targetInfo.sdkPath.flatMap({ VirtualPath.lookup($0.path) }) {
161-
rsrc = sdk.appending(components: "usr", "lib", "swift")
160+
if let sdk = targetInfo.sdkPath {
161+
rsrc = VirtualPath.lookup(sdk.path).appending(components: "usr", "lib", "swift")
162162
} else {
163163
rsrc = VirtualPath.lookup(targetInfo.runtimeResourcePath.path)
164164
}

0 commit comments

Comments
 (0)