@@ -76,11 +76,17 @@ else:
76
76
else :
77
77
swift_exec .extend ([
78
78
'-Xlinker' , '-rpath' , '-Xlinker' , foundation_dir ,
79
- '-Xlinker' , '-rpath' , '-Xlinker' , os .path .join (foundation_dir , 'Foundation' )
79
+ '-Xlinker' , '-rpath' , '-Xlinker' , os .path .join (foundation_dir , 'Foundation' ),
80
+ '-Xlinker' , '-rpath' , '-Xlinker' , os .path .join (foundation_dir , 'Sources' , 'Foundation' ),
81
+ '-Xlinker' , '-rpath' , '-Xlinker' , os .path .join (foundation_dir , 'Sources' , 'FoundationNetworking' ),
82
+ '-Xlinker' , '-rpath' , '-Xlinker' , os .path .join (foundation_dir , 'Sources' , 'FoundationXML' ),
80
83
])
81
84
swift_exec .extend ([
82
85
'-L' , foundation_dir ,
83
86
'-L' , os .path .join (foundation_dir , 'Foundation' ),
87
+ '-L' , os .path .join (foundation_dir , 'Sources' , 'Foundation' ),
88
+ '-L' , os .path .join (foundation_dir , 'Sources' , 'FoundationNetworking' ),
89
+ '-L' , os .path .join (foundation_dir , 'Sources' , 'FoundationXML' ),
84
90
'-I' , foundation_dir ,
85
91
'-I' , os .path .join (foundation_dir , 'swift' ),
86
92
'-Xcc' , '-F' , '-Xcc' , foundation_dir ,
@@ -103,7 +109,15 @@ else:
103
109
'-L' , os .path .join (libdispatch_build_dir , 'src' ),
104
110
])
105
111
106
- config .environment ['LD_LIBRARY_PATH' ] = "{}:{}/src:{}:{}" .format (libdispatch_build_dir , libdispatch_build_dir , foundation_dir , os .path .join (foundation_dir , 'Foundation' ))
112
+ config .environment ['LD_LIBRARY_PATH' ] = ":" .join ([
113
+ libdispatch_build_dir ,
114
+ os .path .join (libdispatch_build_dir , 'src' ),
115
+ foundation_dir ,
116
+ os .path .join (foundation_dir , 'Foundation' ),
117
+ os .path .join (foundation_dir , 'Sources' , 'Foundation' ),
118
+ os .path .join (foundation_dir , 'Sources' , 'FoundationNetworking' ),
119
+ os .path .join (foundation_dir , 'Sources' , 'FoundationXML' ),
120
+ ])
107
121
108
122
# Having prepared the swiftc command, we set the substitution.
109
123
config .substitutions .append (('%{swiftc}' , ' ' .join (swift_exec )))
0 commit comments