Skip to content

Commit

Permalink
Merge pull request apple#2953 from compnerd/cleanup
Browse files Browse the repository at this point in the history
Workspace: remove unnecessary flags on Windows
  • Loading branch information
compnerd committed Oct 12, 2020
2 parents 4c4476f + c48ac37 commit 73bc647
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Sources/Workspace/UserToolchain.swift
Expand Up @@ -251,19 +251,7 @@ public final class UserToolchain: Toolchain {
}
}

return [
"-sdk", root.pathString,

// FIXME: these should not be necessary with the `-sdk`
// parameter. However, it seems that the layout on Windows
// is not entirely correct yet and the driver does not pick
// up the include search path, library search path, nor
// resource dir. Workaround that for the time being to
// enable use of swift-package-manager on Windows.
"-I", root.appending(RelativePath("usr/lib/swift")).pathString,
"-L", root.appending(RelativePath("usr/lib/swift/windows")).pathString,
"-resource-dir", root.appending(RelativePath("usr/lib/swift")).pathString,
] + xctest + runtime
return [ "-sdk", root.pathString, ] + runtime + xctest
}
}

Expand Down

0 comments on commit 73bc647

Please sign in to comment.