Skip to content

Commit a787343

Browse files
authored
Merge pull request #338 from buttaface/rpath
[SR-1625] Remove LD_LIBRARY_PATH from tests
2 parents b2b9d76 + a9266dc commit a787343

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

Tests/Functional/lit.cfg

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,10 @@ else:
119119
'-L', os.path.join(libdispatch_build_dir, 'src', 'swift'),
120120
])
121121

122-
config.environment['LD_LIBRARY_PATH'] = ":".join([
123-
libdispatch_build_dir,
124-
os.path.join(libdispatch_build_dir, 'src'),
125-
foundation_dir,
126-
os.path.join(foundation_dir, 'Foundation'),
127-
os.path.join(foundation_dir, 'Sources', 'Foundation'),
128-
os.path.join(foundation_dir, 'Sources', 'FoundationNetworking'),
129-
os.path.join(foundation_dir, 'Sources', 'FoundationXML'),
130-
os.path.join(foundation_dir, 'lib'),
131-
])
122+
if platform.system() != 'Windows':
123+
swift_exec.extend([
124+
'-Xlinker', '-rpath', '-Xlinker', libdispatch_build_dir,
125+
])
132126

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

0 commit comments

Comments
 (0)