mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
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.
This commit is contained in:
@@ -70,6 +70,15 @@ fn fold_crate(&self, crate: ast::Crate) -> ast::Crate {
|
||||
}];
|
||||
|
||||
if use_uv(&crate) && !*self.sess.building_library {
|
||||
vis.push(ast::view_item {
|
||||
node: ast::view_item_extern_mod(self.sess.ident_of("green"),
|
||||
None,
|
||||
~[vers_item],
|
||||
ast::DUMMY_NODE_ID),
|
||||
attrs: ~[],
|
||||
vis: ast::private,
|
||||
span: dummy_sp()
|
||||
});
|
||||
vis.push(ast::view_item {
|
||||
node: ast::view_item_extern_mod(self.sess.ident_of("rustuv"),
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user