Skip to content

Commit 2c1b4cf

Browse files
committed
Fixing a Linux-specific build failure
1 parent 862d2f6 commit 2c1b4cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/PackageLoading/ManifestTests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ private struct Resources: ManifestResourceProvider {
4949
#endif
5050
let libraryPath = bundleRoot()
5151
#else
52-
let execBinDir = AbsolutePath(CommandLine.arguments.first!, relativeTo: currentWorkingDirectory).parentDirectory
53-
let libraryPath = execBinDir
54-
let swiftCompilerPath = execBinDir.appending(component: "swiftc")
52+
let libraryPath = AbsolutePath(CommandLine.arguments.first!, relativeTo: currentWorkingDirectory).parentDirectory
53+
let swiftCompilerPath = AbsolutePath(CommandLine.arguments.first!, relativeTo: currentWorkingDirectory).parentDirectory.appending(component: "swiftc")
5554
#endif
5655
}
5756

0 commit comments

Comments
 (0)