Skip to content

Commit 391e6fb

Browse files
authored
Update DYLD_LIBRARY_PATH to fix debugging tests in nightly toolchains (#1521)
1 parent 9fd7f6f commit 391e6fb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/toolchain/toolchain.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,11 +488,12 @@ export class SwiftToolchain {
488488
* Library path for swift-testing executables
489489
*/
490490
public swiftTestingLibraryPath(): string | undefined {
491+
let result = "";
491492
const base = this.basePlatformDeveloperPath();
492-
if (!base) {
493-
return undefined;
493+
if (base) {
494+
result = `${path.join(base, "usr/lib")}:`;
494495
}
495-
return path.join(base, "usr/lib");
496+
return `${result}${path.join(this.toolchainPath, "lib/swift/macosx/testing")}`;
496497
}
497498

498499
/**

0 commit comments

Comments
 (0)