Skip to content

Commit 39dbcd7

Browse files
committed
rustc: Temporarily inject libgreen with librustuv
This measure is simply to allow programs to continue compiling as they once did. In the future, this needs a more robust solution to choose how to start with libgreen or libnative.
1 parent aad9fbf commit 39dbcd7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/librustc/front/std_inject.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ impl fold::ast_fold for StandardLibraryInjector {
7070
}];
7171

7272
if use_uv(&crate) && !*self.sess.building_library {
73+
vis.push(ast::view_item {
74+
node: ast::view_item_extern_mod(self.sess.ident_of("green"),
75+
None,
76+
~[vers_item],
77+
ast::DUMMY_NODE_ID),
78+
attrs: ~[],
79+
vis: ast::private,
80+
span: dummy_sp()
81+
});
7382
vis.push(ast::view_item {
7483
node: ast::view_item_extern_mod(self.sess.ident_of("rustuv"),
7584
None,

0 commit comments

Comments
 (0)