-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Consider the following:
We have 2 crates, rlib helper
and the shared library foo
that depends on the helper
crate. The helper crate's lib.rs looks like this:
#[no_mangle]
pub extern fn bla() -> i32 {
5
}
The shared library's lib.rs looks like this:
extern crate helper;
pub use helper::bla;
The code is then compiled to a shared library. The bla symbol is not exported. That does not seem intentional.
thomcc, XeroOl, kvark, ZKing1000, hugwijst and 11 more
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.