@@ -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