Skip to content

Tracking issue for customizing CRT linkage #37406

Closed
@alexcrichton

Description

@alexcrichton
Member

Tracking issue for rust-lang/rfcs#1721

  • - Add the crt-static target-feature
    - Update Cargo to pass through target-feature to build scripts - Expose rustc cfg values to build scripts cargo#3243
    - Implement "lazy link attributes" and implement in a gated fashion in liblibc.

Be aware that "lazy link attributes" (#[link(name = "foo", cfg(foo))]) will never be stable.

Activity

added a commit that references this issue on Nov 11, 2016

Rollup merge of rust-lang#37545 - alexcrichton:crt-static, r=brson

68 remaining items

varkor

varkor commented on Apr 3, 2020

@varkor
Member

This issue is still linked to in errors for #[link(cfg(foo))], so shouldn't it still be open?

petrochenkov

petrochenkov commented on May 9, 2020

@petrochenkov
Contributor

@varkor

This issue is still linked to in errors for #[link(cfg(foo))], so shouldn't it still be open?

It's better to make a new issue (or remove reference to this issue from the feature gate).

varkor

varkor commented on May 9, 2020

@varkor
Member

I've opened #72059, though I haven't had time to look into the state of this feature.

added a commit that references this issue on Mar 23, 2023

Rollup merge of rust-lang#108549 - clubby789:fix-link-cfg-issue, r=eholk

5a017d3
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

    B-unstableBlocker: Implemented in the nightly compiler and unstable.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @steveklabnik@alexcrichton@nikomatsakis@tombruijn@binarycrusader

        Issue actions

          Tracking issue for customizing CRT linkage · Issue #37406 · rust-lang/rust