Skip to content

Using kernelModuleMakeFlags breaks use of NIX_CFLAGS_COMPILE #484935

@samueldr-at-cyberus

Description

@samueldr-at-cyberus

With e9b2edb, part of #402198, the CC variable in kernelModuleMakeFlags was forced to the unwrapped variant of the compiler.

This breaks usage of NIX_CFLAGS_COMPILE when using kernelModuleMakeFlags.

This may have weird consequences for more complicated builds that would include a C++ compiler, as CXX comes from the -wrapped compiler still (see #484933 for an example, though no weirdness was observed AFAICT).

I'm pretty sure replacing CC in that way is likely a breakage in our "contract" of how the compilers are used withing Nixpkgs. Though I don't truly know what the stance here would be.

cc @RossComputerGuy, author of the PR. cc @blitz, original author of the commit.

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