Skip to content

Decouple #[link_name = ""] and #[link_args] #1295

Closed
@brson

Description

@brson
Contributor

When link_name == "" we don't try to link the native library, which we primarily use to link to libc. As a side-effect this causes any link_args to not be emitted. These two things should not be coupled, since one might want to suppress the automatic -L argument to the linker while supplying their own.

Activity

added a commit that references this issue on Dec 14, 2022

Merge pull request rust-lang#1295 from bjorn3/update_cranelift

450257c
added a commit that references this issue on Dec 30, 2024
added a commit that references this issue on Feb 15, 2025

Auto merge of rust-lang#137022 - jieyouxu:bump-bootstrap-cc-cmake, r=…

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 binariesE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @brson

        Issue actions

          Decouple #[link_name = ""] and #[link_args] · Issue #1295 · rust-lang/rust