Skip to content

Add option to allow #[link] directives to be ignored #70093

Closed
@jsgf

Description

@jsgf
Contributor

In a non-Cargo build system (eg Buck) dependencies on native libraries are already defined in the build system. As such the build system will automatically put those libraries on the link line, which means that rustc should not do so. It would be nice to have an option to allow this (proposal: -Zlink-native-libraries=yes/no, to be stabilized as -Clink-native-libraries=yes/no).

Idea mentioned in #64191
cc @cramertj

Activity

added
A-linkageArea: linking into static, shared libraries and binaries
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Mar 18, 2020
added a commit that references this issue on Mar 19, 2020

Rollup merge of rust-lang#70095 - jsgf:link-native, r=nagisa

89dbdc7
added a commit that references this issue on Mar 27, 2020
added a commit that references this issue on Mar 28, 2020

Auto merge of rust-lang#70095 - jsgf:link-native, r=nagisa

jsgf

jsgf commented on May 31, 2021

@jsgf
ContributorAuthor

Resolved by #70095

14 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jsgf@jonas-schievink

        Issue actions

          Add option to allow #[link] directives to be ignored · Issue #70093 · rust-lang/rust