Skip to content

Explicitly link kernel32.lib#482

Merged
alexcrichton merged 1 commit into
rust-lang:masterfrom
ChrisDenton:link-lib
Sep 12, 2022
Merged

Explicitly link kernel32.lib#482
alexcrichton merged 1 commit into
rust-lang:masterfrom
ChrisDenton:link-lib

Conversation

@ChrisDenton

Copy link
Copy Markdown
Member

Currently backtrace depends on something else to link kernel32.lib, which is usually a safe assumption. However, it may become more of a problem once raw-dylib is stable and used by the standard library and other crates.

Using #[link] also allows calling into the function directly instead of going through a jump stub.

Currently backtrace depends on something else to link kernel32.lib, which is usually a safe assumption. However, it may become more of a problem once raw-dylib is stable and used by the standard library and other crates.

Using `#[link]` also allows calling into the function directly instead of going through a jump stub.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants