Skip to content

Rustix recompiles every time switching between Intellij and CLI #562

Closed
@howardjohn

Description

@howardjohn

This is maybe not even a rustix bug, but may help someone else seeing the same issue.

Rustix's build.rs has cargo:rerun-if-env-changed=RUSTC.

When I run cargo check from my terminal, I see RUSTC=rustc. When I run it from intellij, I get RUSTC=$HOME/.cargo/bin/rustc. This means each time the build is invalidated.

For now I am just doing export RUSTC=$HOME/.cargo/bin/rustc to work around this

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