rust
rust copied to clipboard
The structure definition of dllimport seems to lack information and is not enough to generate an undecorated lib.
Where rust calls llvm, the symbolname is left blank, which makes the structure definition of dllimport seem to lack information and is not enough to generate an undecorated lib.
Can you post a rust code snippet on which you are experiencing the issue and show the exact issue (linker error, other kind of compilation failure, ...)
#124958
I addressed this in https://github.com/rust-lang/rust/issues/124958#issuecomment-2108222471
To summarize for this specific part of the issue:
- Not setting
SymbolNameis a fair criticism, but I wouldn't want to change it now without an MCP and a motivating example where Rust has incorrect behavior. - You've demonstrated that Rust produces a different import library than MSVC or Clang but have not explained why this is an issue.