Skip to content

Commit 4fa39ed

Browse files
authored
Merge pull request #287 from compnerd/foundation-layout
test: adjust for new Foundation layout
2 parents b5a8093 + bff04b4 commit 4fa39ed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Tests/Functional/lit.cfg

+6-2
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,13 @@ else:
7474
if platform.system() == 'Windows':
7575
swift_exec.extend(['-Xlinker', '-nodefaultlib:libcmt'])
7676
else:
77-
swift_exec.extend(['-Xlinker', '-rpath', '-Xlinker', foundation_dir,])
77+
swift_exec.extend([
78+
'-Xlinker', '-rpath', '-Xlinker', foundation_dir,
79+
'-Xlinker', '-rpath', '-Xlinker', os.path.join(foundation_dir, 'Foundation')
80+
])
7881
swift_exec.extend([
7982
'-L', foundation_dir,
83+
'-L', os.path.join(foundation_dir, 'Foundation'),
8084
'-I', foundation_dir,
8185
'-I', os.path.join(foundation_dir, 'swift'),
8286
'-Xcc', '-F', '-Xcc', foundation_dir,
@@ -99,7 +103,7 @@ else:
99103
'-L', os.path.join(libdispatch_build_dir, 'src'),
100104
])
101105

102-
config.environment['LD_LIBRARY_PATH'] = "{}:{}/src:{}".format(libdispatch_build_dir, libdispatch_build_dir, foundation_dir)
106+
config.environment['LD_LIBRARY_PATH'] = "{}:{}/src:{}:{}".format(libdispatch_build_dir, libdispatch_build_dir, foundation_dir, os.path.join(foundation_dir, 'Foundation'))
103107

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

0 commit comments

Comments
 (0)