|
74 | 74 | if platform.system() == 'Windows':
|
75 | 75 | swift_exec.extend(['-Xlinker', '-nodefaultlib:libcmt'])
|
76 | 76 | 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 | + ]) |
78 | 81 | swift_exec.extend([
|
79 | 82 | '-L', foundation_dir,
|
| 83 | + '-L', os.path.join(foundation_dir, 'Foundation'), |
80 | 84 | '-I', foundation_dir,
|
81 | 85 | '-I', os.path.join(foundation_dir, 'swift'),
|
82 | 86 | '-Xcc', '-F', '-Xcc', foundation_dir,
|
|
99 | 103 | '-L', os.path.join(libdispatch_build_dir, 'src'),
|
100 | 104 | ])
|
101 | 105 |
|
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')) |
103 | 107 |
|
104 | 108 | # Having prepared the swiftc command, we set the substitution.
|
105 | 109 | config.substitutions.append(('%{swiftc}', ' '.join(swift_exec)))
|
|
0 commit comments