Skip to content

documentation of environment variables is lacking #920

@Be-ing

Description

@Be-ing

Currently, the documentation on what environment variables this crate reads and what effects they have is lacking. For example, the try_flags_from_environment documentation merely says "Normally the cc crate will consult with the standard set of environment variables (such as CFLAGS and CXXFLAGS) to construct the compiler invocation." cc-rs uses more than CFLAGS and CXXFLAGS. Here are a few topics lacking documentation:

  • How to use CC/CXX to specify the compiler
  • How CC/CXX can specify compiler caches and compiler flags
  • How to use target-specific environment variables
  • How RUSTC_WRAPPER can be used for C & C++ compiler caching with sccache
  • VCINSTALLDIR

Are there other uses of environment variables that should be documented?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions