Skip to content

crabtime does not work with -Zfmt-debug=none #52

Description

@purpole

I tried to use a project with crabtime that uses the -Zfmt-debug=none flag via .cargo/config.toml, however the macro did not produce any output.

To quickly fix this in my project, I patched the run_cargo_project function to just use empty RUSTFLAGS:

let output = Command::new("cargo")
    .env("RUSTFLAGS", "")
    .arg("run")
    .arg("--target")
    .arg(&host_target)
    .current_dir(project_dir)
    .output()
    .context("Failed to execute cargo run")?;

Currently, it seems like all options from .cargo/config.toml of the project using crabtime are used to compile crabtime, is this necessary? 🙂

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions