Skip to content

Bare linker support#203

Merged
Shnatsel merged 6 commits intomasterfrom
bare-linker-support
May 1, 2025
Merged

Bare linker support#203
Shnatsel merged 6 commits intomasterfrom
bare-linker-support

Conversation

@Shnatsel
Copy link
Copy Markdown
Member

Fixes #202

/// Normally `rustc` uses a C compiler such as `cc` or `clang` as linker,
/// and arguments to the actual linker need to be passed prefixed with `-Wl,`.
/// But it is possible to configure Cargo and rustc to call a linker directly,
/// and the breakage it causes is subtle enough that people just roll with it
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂

/// and whether you need to prepend `-Wl,` or not.
///
/// Such setups are exceptionally rare and frankly it's a misconfiguration
/// that will break more than just `cargo auditable`, but I am feeling generous.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@Shnatsel Shnatsel merged commit aa48eed into master May 1, 2025
9 checks passed
@Shnatsel Shnatsel deleted the bare-linker-support branch May 1, 2025 11:34
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.

Not compatible with direct linker invocations (bypassing C compiler)

2 participants