Skip to content

c language doesn't include gcov #100

@mayl

Description

@mayl

I have a devshell.toml like below:

[language.c]
compiler = "pkgs.gcc"

When I enter the nix-shell I have gcc available from the nix store, but not gcov

[devshell]$ which gcc
/nix/store/2x4vcmasjgjs28arlgvx352y64h5y4z1-devshell-dir/bin/gcc
[devshell]$ which gcov
/usr/bin/gcov

I expect to have gcov available because when I run nix-shell -p gcc both are available:

$ which gcc
/nix/store/r4l53b461b2lyclxn1pdj0n4hvbxl2l6-gcc-wrapper-9.3.0/bin/gcc
$ which gcov
/nix/store/7rnys4pl8v7sb72ljbhzr3wjfly339rg-gcc-9.3.0/bin/gcov

My current workaround is to add "gcc-unwrapped" to the list of packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions