Skip to content

Commit 3856ab5

Browse files
committed
[Tests] Set LD_LIBRARY_PATH when running tests
swiftlang/swift#2609 introduced a change to the default behavior of the Swift driver, which now uses the gold linker unless specified otherwise. This caused a linker error in swift-corelibs-xctest's test suite, which this commit fixes.
1 parent c82928c commit 3856ab5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/Functional/lit.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ else:
7676
'-I', foundation_dir,
7777
'-I', core_foundation_dir,
7878
])
79+
config.environment['LD_LIBRARY_PATH'] = foundation_dir
7980

8081
# Having prepared the swiftc command, we set the substitution.
8182
config.substitutions.append(('%{swiftc}', ' '.join(swift_exec)))

0 commit comments

Comments
 (0)