Skip to content

Embed config-relative paths as a substring #12193

@rhgndf

Description

@rhgndf

Problem

Config env vars as far as I can tell cannot embed relative paths as a substring.

Proposed Solution

It would be useful to be able to set env vars like this for dependencies that need to compile C libraries.

[env]
CFLAGS = ["-I", { value = "include", relative = true }]

Notes

Useful if needed to modify how a library compiles for wasm32-unknown-unknown

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-environment-variablesArea: environment variablesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions