Skip to content

Commit 0bd9e76

Browse files
authored
Merge pull request #310 from compnerd/paths
test: adjust library search paths for Foundation
2 parents fffe073 + 69f83e9 commit 0bd9e76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/Functional/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,15 @@ else:
8080
'-Xlinker', '-rpath', '-Xlinker', os.path.join(foundation_dir, 'Sources', 'Foundation'),
8181
'-Xlinker', '-rpath', '-Xlinker', os.path.join(foundation_dir, 'Sources', 'FoundationNetworking'),
8282
'-Xlinker', '-rpath', '-Xlinker', os.path.join(foundation_dir, 'Sources', 'FoundationXML'),
83+
'-Xlinker', '-rpath', '-Xlinker', os.path.join(foundation_dir, 'lib'),
8384
])
8485
swift_exec.extend([
8586
'-L', foundation_dir,
8687
'-L', os.path.join(foundation_dir, 'Foundation'),
8788
'-L', os.path.join(foundation_dir, 'Sources', 'Foundation'),
8889
'-L', os.path.join(foundation_dir, 'Sources', 'FoundationNetworking'),
8990
'-L', os.path.join(foundation_dir, 'Sources', 'FoundationXML'),
91+
'-L', os.path.join(foundation_dir, 'lib'),
9092
'-I', foundation_dir,
9193
'-I', os.path.join(foundation_dir, 'swift'),
9294
'-Xcc', '-F', '-Xcc', foundation_dir,
@@ -119,6 +121,7 @@ else:
119121
os.path.join(foundation_dir, 'Sources', 'Foundation'),
120122
os.path.join(foundation_dir, 'Sources', 'FoundationNetworking'),
121123
os.path.join(foundation_dir, 'Sources', 'FoundationXML'),
124+
os.path.join(foundation_dir, 'lib'),
122125
])
123126

124127
# Having prepared the swiftc command, we set the substitution.

0 commit comments

Comments
 (0)