Skip to content

Commit 85c6ac9

Browse files
committed
Strip newlines from xcrun output
1 parent c650821 commit 85c6ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftlyCore/Platform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ extension Platform {
215215
// find standard libraries that aren't in the toolchain, like libc++. Here we
216216
// use xcrun to tell us what the default sdk root should be.
217217
if newEnv["SDKROOT"] == nil {
218-
newEnv["SDKROOT"] = (try? await self.runProgramOutput("/usr/bin/xcrun", "--show-sdk-path"))
218+
newEnv["SDKROOT"] = (try? await self.runProgramOutput("/usr/bin/xcrun", "--show-sdk-path"))?.replacingOccurrences(of: "\n", with: "")
219219
}
220220
#endif
221221

0 commit comments

Comments
 (0)